Skip to content

Commit b86914d

Browse files
authored
Fix ruff invocation (#1314)
Ruff must now either be invoked as `ruff check` or `ruff format`. Remove an unused `noqa` directive.
1 parent caa1ab3 commit b86914d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/OpenSSL/crypto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ def __setattr__(self, name: str, value: Any) -> None:
639639

640640
# Note: we really do not want str subclasses here, so we do not use
641641
# isinstance.
642-
if type(name) is not str: # noqa: E721
642+
if type(name) is not str:
643643
raise TypeError(
644644
f"attribute name must be string, not "
645645
f"'{type(value).__name__:.200}'"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ deps =
4747
ruff
4848
skip_install = true
4949
commands =
50-
ruff .
50+
ruff check .
5151
ruff format --check .
5252

5353
[testenv:py311-mypy]

0 commit comments

Comments
 (0)