-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
29 lines (26 loc) · 989 Bytes
/
Copy pathpyproject.toml
File metadata and controls
29 lines (26 loc) · 989 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
# Tooling configuration only -- DocuBot is an application, not a distributed package,
# so there is no [project] table and nothing is ever pip-installed from here.
# Keeping lint/test settings in one committed file is what makes the CI fast gate
# (D-18) behave identically on this machine and on GitHub Actions.
[tool.ruff]
line-length = 100
target-version = "py312"
extend-exclude = [".venv", "data", "assets", "documents"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # import sorting
"UP", # pyupgrade -- keep idioms current for the pinned Python
"B", # flake8-bugbear
"SIM", # flake8-simplify
"C4", # comprehensions
"RET", # return-statement hygiene
"PTH", # prefer pathlib over os.path
]
[tool.pytest.ini_options]
testpaths = ["tests"]
# Import the app package from the repo root without an editable install.
pythonpath = ["."]
addopts = "-q --strict-markers"