56 lines
1.1 KiB
TOML
56 lines
1.1 KiB
TOML
[tool.ruff]
|
|
line-length = 120
|
|
ignore-init-module-imports = true
|
|
ignore = [
|
|
"G004", # Logging statement uses f-string
|
|
"EM102", # Exception must not use an f-string literal, assign to variable first
|
|
]
|
|
select = [
|
|
"A", # flake8-builtins
|
|
"B", # flake8-bugbear
|
|
"C90", # mccabe
|
|
"COM", # flake8-commas
|
|
"D", # pydocstyle
|
|
"EM", # flake8-errmsg
|
|
"E", # pycodestyle errors
|
|
"F", # Pyflakes
|
|
"G", # flake8-logging-format
|
|
"I", # isort
|
|
"N", # pep8-naming
|
|
"PIE", # flake8-pie
|
|
"PTH", # flake8-use-pathlib
|
|
"RET", # flake8-return
|
|
"RUF", # ruff
|
|
"S", # flake8-bandit
|
|
"TCH", # flake8-type-checking
|
|
"TID", # flake8-tidy-imports
|
|
"UP", # pyupgrade
|
|
"W", # pycodestyle warnings
|
|
]
|
|
|
|
[tool.ruff.pydocstyle]
|
|
convention = "google"
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
"__init__.py" = ["F401"]
|
|
|
|
[tool.black]
|
|
exclude = '''
|
|
/(
|
|
\.git
|
|
\.venv
|
|
)/
|
|
'''
|
|
include = '\.pyi?$'
|
|
line-length = 120
|
|
target-version = ["py310"]
|
|
|
|
[tool.isort]
|
|
multi_line_output = 3
|
|
profile = "black"
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|