diff --git a/backend/src/hatchling/version/source/code.py b/backend/src/hatchling/version/source/code.py index dc708aee7..c6c751980 100644 --- a/backend/src/hatchling/version/source/code.py +++ b/backend/src/hatchling/version/source/code.py @@ -59,6 +59,6 @@ def get_version_data(self) -> dict: return {'version': version} - def set_version(self, version: str, version_data: dict) -> None: # noqa: ARG002, PLR6301 + def set_version(self, version: str, version_data: dict) -> None: # noqa: PLR6301 message = 'Cannot rewrite loaded code' raise NotImplementedError(message) diff --git a/backend/src/hatchling/version/source/env.py b/backend/src/hatchling/version/source/env.py index b46389437..1d4755738 100644 --- a/backend/src/hatchling/version/source/env.py +++ b/backend/src/hatchling/version/source/env.py @@ -24,6 +24,6 @@ def get_version_data(self) -> dict: return {'version': os.environ[variable]} - def set_version(self, version: str, version_data: dict) -> None: # noqa: ARG002, PLR6301 + def set_version(self, version: str, version_data: dict) -> None: # noqa: PLR6301 message = 'Cannot set environment variables' raise NotImplementedError(message) diff --git a/docs/history/hatch.md b/docs/history/hatch.md index e8988d7c5..2cb076516 100644 --- a/docs/history/hatch.md +++ b/docs/history/hatch.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ***Added:*** +- Upgrade Ruff to 0.9.1 - The `version` and `project metadata` commands now support projects that do not use Hatchling as the build backend - The `version` command accepts a `--force` option, allowing for downgrades when an explicit version number is given. - Build environments can now be configured, the default build environment is `hatch-build`