Skip to content

Commit 866a535

Browse files
committed
Update ruff config for latest ruff version
1 parent ffee91f commit 866a535

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ruff.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ select = [
1616
'C4', # flake8-comprehensions
1717
'INT', # flake8-gettext
1818
'LOG', # flake8-logging
19+
'G', # flake8-logging-format
1920
'B', # flake8-bugbear
2021
'A001', # flake8-builtins
2122
'COM', # flake8-commas
@@ -59,8 +60,6 @@ ignore = [
5960
'B011', # we don't run python with `-O` (also see S101)
6061
'B904', # possibly useful but too noisy
6162
'PIE807', # `lambda: []` is much clearer for `load_default` in schemas
62-
'PT004', # pretty weird + not a pytest convention: https://github.com/astral-sh/ruff/issues/8796
63-
'PT005', # ^ likewise
6463
'PT011', # very noisy
6564
'PT015', # nice for tests but not so nice elsewhere
6665
'PT018', # ^ likewise
@@ -96,7 +95,7 @@ ignore = [
9695
]
9796

9897
extend-safe-fixes = [
99-
'RUF005', # we typically don't deal with objects overriding `__add__` ir `__radd__`
98+
'RUF005', # we typically don't deal with objects overriding `__add__` or `__radd__`
10099
'C4', # they seem pretty safe
101100
'UP008', # ^ likewise
102101
'D200', # ^ likewise
@@ -140,3 +139,6 @@ classmethod-decorators = [
140139

141140
[lint.pydocstyle]
142141
convention = 'pep257'
142+
143+
[lint.ruff]
144+
parenthesize-tuple-in-subscript = true

0 commit comments

Comments
 (0)