Skip to content

Commit

Permalink
Fix ruff invocation (#1314)
Browse files Browse the repository at this point in the history
Ruff must now either be invoked as `ruff check` or `ruff format`.

Remove an unused `noqa` directive.
  • Loading branch information
jlaine committed Jun 28, 2024
1 parent caa1ab3 commit b86914d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OpenSSL/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def __setattr__(self, name: str, value: Any) -> None:

# Note: we really do not want str subclasses here, so we do not use
# isinstance.
if type(name) is not str: # noqa: E721
if type(name) is not str:
raise TypeError(
f"attribute name must be string, not "
f"'{type(value).__name__:.200}'"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ deps =
ruff
skip_install = true
commands =
ruff .
ruff check .
ruff format --check .

[testenv:py311-mypy]
Expand Down

0 comments on commit b86914d

Please sign in to comment.