@@ -8,27 +8,75 @@ docstring-code-format = true
88
99[lint ]
1010select = [
11- " C4" , # flake8-comprehensions
11+ " ANN" , # flake8-annotations
12+ " ASYNC" , # flake8-async
1213 " B" , # flake8-bugbear
14+ " BLE" , # flake8-blind-except
15+ " C4" , # flake8-comprehensions
16+ " D" , # pydocstyle
17+ " D212" , # Multi-line docstring summary should start at the first line
18+ " D417" , # Missing argument description in the docstring for `{definition}`: `{name}`
19+ " DTZ" , # flake8-datetimez
1320 " E" , # pycodestyle
21+ " EM" , # flake8-errmsg
22+ " EXE" , # flake8-executable
1423 " F" , # pyflakes
1524 " FA" , # flake8-future-annotations
25+ " FIX" , # flake8-fixme
1626 " FLY" , # flynt
1727 " FURB" , # refurb
1828 " G" , # flake8-logging-format
1929 " I" , # isort
30+ " ICN" , # flake8-import-conventions
31+ " INT" , # flake8-gettext
32+ " ISC" , # flake8-implicit-str-concat
2033 " LOG" , # flake8-logging
34+ " N" , # pep8-naming
2135 " PERF" , # perflint
2236 " PGH" , # pygrep-hooks
37+ " PIE" , # flake8-pie
38+ " PLC" , # pylint
39+ " PLE" , # pylint
40+ " PLW" , # pylint
2341 " PT" , # flake8-pytest-style
42+ " PTH" , # flake8-use-pathlib
43+ " Q" , # flake8-quotes
44+ " RET" , # flake8-return
45+ " RSE" , # flake8-raise
46+ " RUF" , # Ruff-specific rules
47+ " S" , # flake8-bandit
48+ " SIM" , # flake8-simplify
49+ " SLF" , # flake8-self
50+ " SLOT" , # flake8-slots
51+ " T10" , # flake8-debugger
2452 " TC" , # flake8-type-checking
53+ " TD" , # flake8-todos
54+ " TID" , # flake8-tidy-imports
55+ " TRY" , # tryceratops
2556 " UP" , # pyupgrade
2657 " W" , # pycodestyle
58+ " W" , # pycodestyle
59+ " YTT" , # flake8-2020
2760]
2861ignore = [
62+ # pydocstyle
63+ " D100" , # Missing docstring in public module
64+ " D102" , # Missing docstring in public method
65+ " D103" , # Missing docstring in public function
66+ " D104" , # Missing docstring in public package
67+ " D107" , # Missing docstring in `__init__`
68+ " D400" , # First line should end with a period
69+ # pycodestyle
2970 " E501" , # Ignore line length errors (we use auto-formatting)
3071]
3172
73+ [lint .per-file-ignores ]
74+ "tests/*" = [
75+ " ANN" , # tests don't need annotations
76+ " S101" , # allow use of assert
77+ " SLF001" , # allow private member access
78+ ]
79+
3280[lint .flake8-type-checking ]
3381exempt-modules = []
3482strict = true
@@ -40,3 +88,8 @@ forced-separate = [
4088required-imports = [
4189 " from __future__ import annotations" ,
4290]
91+
92+ [lint .pydocstyle ]
93+ convention = " pep257"
94+ ignore-decorators = [" typing.overload" ]
95+ ignore-var-parameters = true
0 commit comments