Skip to content

Commit 0c30b9e

Browse files
committed
Update ruff config
1 parent 19afbb0 commit 0c30b9e

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

publish.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ def publish(*, dryrun: bool = False) -> None:
101101
continue
102102

103103
print(f"[{publishing_version}] Building...")
104-
subprocess.check_call([poetry_path, "build", "-v"]) # noqa: S603
104+
subprocess.check_call([poetry_path, "build", "-v"])
105105

106106
print(f"[{publishing_version}] Publishing to TestPyPI...")
107-
subprocess.check_call([poetry_path, "publish", "-r", "testpypi", "-v"]) # noqa: S603
107+
subprocess.check_call([poetry_path, "publish", "-r", "testpypi", "-v"])
108108

109109
print(f"[{publishing_version}] Publishing to PyPI...")
110-
subprocess.check_call([poetry_path, "publish", "-v"]) # noqa: S603
110+
subprocess.check_call([poetry_path, "publish", "-v"])
111111

112112
print(f"[{publishing_version}] Published!")
113113

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,16 @@ lint.select = [
6262
"ALL",
6363
]
6464
lint.ignore = [
65-
"D",
65+
"D211", # No blank lines allowed before class docstring
66+
"D213", # Multi-line docstring summary should start at the second line
6667
]
6768
lint.per-file-ignores."publish.py" = [
69+
"D",
70+
"S603", # `subprocess` call: check for execution of untrusted input
6871
"T201", # `print` found
6972
]
70-
lint.per-file-ignores."tests/test_*.py" = [
73+
lint.per-file-ignores."tests/*" = [
74+
"D",
7175
"S101", # Use of `assert` detected
7276
]
7377

0 commit comments

Comments
 (0)