Skip to content

Commit

Permalink
Apply ruff rule RUF100
Browse files Browse the repository at this point in the history
RUF100 Unused `noqa` directive (unused: `ARG002`)
  • Loading branch information
DimitriPapadopoulos committed Jan 15, 2025
1 parent 2a8de1b commit 2b59862
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/hatchling/version/source/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion backend/src/hatchling/version/source/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 1 addition & 0 deletions docs/history/hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 2b59862

Please sign in to comment.