@@ -7,7 +7,31 @@ requires = [
77build-backend = " setuptools.build_meta"
88
99[tool .ruff ]
10- select = [" E" , " F" , " I" ]
10+ select = [
11+ # "ANN", # annotations TODO
12+ " B" , # bugbear
13+ " C4" , # comprehensions
14+ " DTZ" , # naive datetime
15+ " E" , # style errors
16+ " F" , # flakes
17+ " I" , # import sorting
18+ " ISC" , # string concatenation
19+ " N" , # naming
20+ " PGH" , # pygrep-hooks
21+ " PIE" , # miscellaneous
22+ " PLC" , # pylint convention
23+ " PLE" , # pylint error
24+ # "PLR", # pylint refactor TODO
25+ " PLW" , # pylint warning
26+ " Q" , # quotes
27+ " RUF" , # Ruff
28+ " S" , # security
29+ " SIM" , # simplify
30+ " T10" , # debugger
31+ " UP" , # upgrade
32+ " W" , # style warnings
33+ " YTT" , # sys.version
34+ ]
1135# Ignore list taken from https://github.com/psf/black/blob/master/.flake8
1236# E203 Whitespace before ':'
1337# E266 Too many leading '#' for block comment
@@ -16,7 +40,14 @@ select = ["E", "F", "I"]
1640# But we don't specify them because ruff's Black already
1741# checks for it.
1842# See https://github.com/charliermarsh/ruff/issues/1842#issuecomment-1381210185
19- extend-ignore = [" E501" ]
43+ extend-ignore = [
44+ " E501" ,
45+ " S101" , # Use of `assert` detected
46+ " B017" , # `assertRaises(Exception)` should be considered evil TODO
47+ " PGH004" , # Use specific rule codes when using `noqa` TODO
48+ " B905" , # `zip()` without an explicit `strict=` parameter
49+ " N802" , # Function name should be lowercase
50+ ]
2051extend-exclude = [" docs" , " build" ]
2152# Hardcode to Python 3.8.
2253target-version = " py38"
0 commit comments