@@ -63,19 +63,23 @@ artifacts = [
6363local_scheme = " no-local-version"
6464
6565[tool .ruff ]
66- line-length = 88
66+ fix = true
67+
68+ [tool .ruff .lint ]
6769select = [
70+ " C4" , # flake8-comprehensions
71+ " D" , # pydocstyle
6872 " E" , # pycodestyle errors
6973 " EM" , # flake8-errmsg
7074 " F" , # pyflakes errors
7175 " I" , # isort
7276 " ISC" , # flake8-implicit-str-concat
77+ " LOG" , # flake8-logging
7378 " PGH" , # pygrep-hooks
7479 " RUF100" , # unused noqa (yesqa)
7580 " UP" , # pyupgrade
7681 " W" , # pycodestyle warnings
7782 " YTT" , # flake8-2020
78- # "LOG", # TODO: enable flake8-logging when it's not in preview anymore
7983]
8084extend-ignore = [
8185 " E203" , # Whitespace before ':'
@@ -84,9 +88,15 @@ extend-ignore = [
8488 " E241" , # Multiple spaces after ','
8589]
8690
87- [tool .ruff .isort ]
88- required-imports = [" from __future__ import annotations" ]
91+ [tool .ruff .lint .isort ]
8992known-first-party = [" humanize" ]
93+ required-imports = [" from __future__ import annotations" ]
94+
95+ [tool .ruff .pydocstyle ]
96+ convention = " google"
97+
98+ [tool .ruff .lint .per-file-ignores ]
99+ "tests/*" = [" D" ]
90100
91101[tool .pytest .ini_options ]
92102addopts = " --color=yes"
@@ -95,6 +105,3 @@ filterwarnings = [
95105 # https://github.com/dateutil/dateutil/issues/1314
96106 " ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz" ,
97107]
98-
99- [tool .pydocstyle ]
100- convention = " google"
0 commit comments