Skip to content

Commit 300a661

Browse files
committed
feat: update ruff config
1 parent 24ab586 commit 300a661

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

pyproject.toml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,26 @@ disable_error_code = ["import-untyped"]
77
profile = "black"
88

99
[tool.ruff.lint]
10+
select = [
11+
"E", # pycodestyle errors
12+
"W", # pycodestyle warnings
13+
"F", # pyflakes
14+
"I", # isort
15+
"C", # flake8-comprehensions
16+
"B", # flake8-bugbear
17+
"UP", # pyupgrade
18+
]
19+
ignore = [
20+
"E501", # line too long, handled by black
21+
"B008", # do not perform function calls in argument defaults
22+
"C901", # too complex
23+
"W191", # indentation contains tabs
24+
"E741", # Ambiguous variable name
25+
]
1026
ignore-init-module-imports = true
1127

1228
[tool.ruff.lint.per-file-ignores]
13-
"__init__.py" = ["F401"]
29+
"__init__.py" = ["F401"]
30+
31+
[tool.ruff.lint.pyupgrade]
32+
keep-runtime-typing = true

0 commit comments

Comments
 (0)