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 65c046e
Show file tree
Hide file tree
Showing 2 changed files with 2 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)

0 comments on commit 65c046e

Please sign in to comment.