forked from DIRACGrid/diracx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
31 lines (25 loc) · 1004 Bytes
/
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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"
# Enable setuptools_scm to compute the version number from the most recent tag
# https://github.com/pypa/setuptools_scm/#pyprojecttoml-usage
[tool.setuptools_scm]
[tool.ruff]
select = ["E", "F", "B", "I"]
ignore = ["B905", "B008", "B006"]
line-length = 120
src = ["src", "tests"]
[tool.ruff.flake8-bugbear]
# Allow default arguments like, e.g., `data: List[str] = fastapi.Query(None)`.
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query", "fastapi.Path", "fastapi.Body", "fastapi.Header"]
[tool.mypy]
plugins = ["sqlalchemy.ext.mypy.plugin", "pydantic.mypy"]
exclude = ["^src/diracx/client", "^tests/", "^build/"]
allow_redefinition = true
# strict = true
enable_error_code = ["import", "attr-defined"]
[[tool.mypy.overrides]]
module = 'authlib.*'
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = ["-v", "--cov=diracx", "--cov-report=term-missing"]