-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
24 lines (22 loc) · 930 Bytes
/
Copy pathpyproject.toml
File metadata and controls
24 lines (22 loc) · 930 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
[tool.ruff]
line-length = 110
target-version = "py311"
# The original notebook and its script export are kept as the historical record of
# the earlier analysis; they are not maintained code and are not linted.
exclude = [
".venv", "mlruns", "exported_model", "data", "dvc-storage",
"Group16_PA_Tablespreads.py", "*.ipynb",
]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
ignore = [
"E402", # EDA.py must set the matplotlib Agg backend before importing pyplot
"B008", # FastAPI's Depends()/Field() in defaults is the framework's idiom
]
[tool.pytest.ini_options]
testpaths = ["tests"]
# The modules under test live at the repo root, not in an installed package.
# `python -m pytest` happens to add the CWD to sys.path, but a bare `pytest`
# (what CI runs) does not -- so without this the imports fail only in CI.
pythonpath = ["."]
filterwarnings = ["ignore::DeprecationWarning", "ignore::UserWarning"]