Skip to content

Commit bc36b7c

Browse files
authored
Merge branch 'main' into henryiii/chore/ruff-RET
2 parents 3830fe9 + b0c230c commit bc36b7c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

docs/utils.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,10 @@ Reference
8181
:class:`~packaging.version.Version`. The build number is ``()`` if
8282
there is no build number in the wheel filename, otherwise a
8383
two-item tuple of an integer for the leading digits and
84-
a string for the rest of the build number. The tags portion is an
85-
instance of :class:`~packaging.tags.Tag`.
84+
a string for the rest of the build number. The tags portion is a
85+
frozen set of :class:`~packaging.tags.Tag` instances (as the tag
86+
string format allows multiple tags to be combined into a single
87+
string).
8688

8789
:param str filename: The name of the wheel file.
8890
:raises InvalidWheelFilename: If the filename in question

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ extend-select = [
9696
"ARG", # flake8-unused-argument
9797
"B", # flake8-bugbear
9898
"BLE", # flake8-blind-except
99+
"C4", # flake8-comprehensions
99100
"DTZ", # flake8-datetimez
100101
"E",
101102
"EXE", # flake8-executable
@@ -122,6 +123,7 @@ extend-select = [
122123
"SIM", # flake8-simplify
123124
"SLOT", # flake8-slots
124125
"T10", # flake8-debugger
126+
"T20", # flake8-print
125127
"TRY", # tryceratops
126128
"UP", # pyupgrade
127129
"W",
@@ -136,9 +138,12 @@ ignore = [
136138
"SIM105", # try/except is faster than contextlib.suppress
137139
"TRY003", # long messages outside exception class
138140
]
141+
flake8-comprehensions.allow-dict-calls-with-keyword-arguments = true
139142
flake8-unused-arguments.ignore-variadic-names = true
140143

141144
[tool.ruff.lint.per-file-ignores]
142-
"tests/test_*.py" = ["PYI024", "PLR", "SIM201", "RET505"]
143-
"tasks/check.py" = ["UP032"]
145+
"tests/test_*.py" = ["PYI024", "PLR", "SIM201", "T20", "RET505"]
146+
"tasks/check.py" = ["UP032", "T20"]
144147
"tests/test_requirements.py" = ["UP032"]
148+
"src/packaging/_musllinux.py" = ["T20"]
149+
"noxfile.py" = ["T20"]

0 commit comments

Comments
 (0)