-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
38 lines (33 loc) · 1.2 KB
/
pyproject.toml
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
33
34
35
36
37
38
## ruff
# Recommended ruff config for now, to be updated as we go along.
[tool.ruff]
target-version = 'py310'
lint.select = []
# TARGET : lint.select = [
# "E", # pycodestyle
# "W", # pycodestyle
# "F", # Pyflakes
# "B", # flake8-bugbear
# "C4", # flake8-comprehensions
# "I", # isort
# "SIM", # flake8-simplify
# "TCH", # flake8-type-checking
# "TID", # flake8-tidy-imports
# "UP", # pyupgrade
# "PT", # flake8-pytest-style
# "RUF", # Ruff-specific rules
# "FBT001", # flake8-boolean-trap
# ]
[tool.ruff.lint.pydocstyle]
# Automatically disable rules that are incompatible with Google docstring convention
convention = "google"
[tool.ruff.lint.pycodestyle]
max-doc-length = 100
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.flake8-type-checking]
strict = true
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
# Pydantic needs to be able to evaluate types at runtime
# see https://pypi.org/project/flake8-type-checking/ for flake8-type-checking documentation
# see https://beta.ruff.rs/docs/settings/#flake8-type-checking-runtime-evaluated-base-classes for ruff documentation