🔧 add pyproject.toml

This commit is contained in:
Laurent FAINSIN 2023-05-26 14:59:38 +02:00
parent ee2501d2bd
commit ee1be08bce

55
pyproject.toml Normal file
View file

@ -0,0 +1,55 @@
[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