-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
32 lines (29 loc) · 796 Bytes
/
pyproject.toml
File metadata and controls
32 lines (29 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
scripts_are_modules = true
[tool.ruff]
# Same as Black.
line-length = 119
# Assume Python 3.11
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # Line length (handled by ruff-format)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
per-file-ignores = { "__init__.py" = ["F401"] }
[tool.isort]
profile = "black"
known_third_party = ["transformers", "starlette", "huggingface_hub"]