-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
132 lines (114 loc) · 2.44 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
[project]
name = "janus-web"
version = "0.0.1"
description = "API for janus-core"
authors = [
{ name = "Cameron Ball" },
]
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Development Status :: 3 - Alpha",
]
readme = "README.md"
dependencies = [
"janus-core",
"fastapi<1.0.0,>=0.95.0",
"uvicorn<1.0.0,>=0.22.0",
"python-multipart",
"fastapi-cors"
]
[project.optional-dependencies]
[project.scripts]
[project.urls]
repository = "https://github.com/stfc/janus-web/"
documentation = "https://stfc.github.io/janus-web/"
[dependency-groups]
dev = [
"coverage[toml]<8.0.0,>=7.4.1",
"pgtest<2.0.0,>=1.3.2",
"pytest<9.0,>=8.0",
"pytest-cov<5.0.0,>=4.1.0",
"tox-uv<2.0,>=1.16.1",
"wheel<1.0,>=0.42",
]
docs = [
"furo<2025.0.0,>=2024.1.29",
"markupsafe<2.1",
"numpydoc<2.0.0,>=1.6.0",
"sphinx<8.0.0,>=7.2.6",
"sphinxcontrib-contentui<1.0.0,>=0.2.5",
"sphinxcontrib-details-directive<1.0,>=0.1",
"sphinx-copybutton<1.0.0,>=0.5.2",
]
pre-commit = [
"pre-commit<4.0.0,>=3.6.0",
"ruff<1.0.0,>=0.7.4",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pytest.ini_options]
# Configuration for pytest
python_files = "test_*.py"
addopts = '--cov-report xml'
pythonpath = ["."]
[tool.coverage.run]
# Configuration of coverage.py
# reporting which lines of your plugin are covered by tests
source=["janus_web"]
[tool.ruff]
exclude = ["conf.py"]
target-version = "py310"
[tool.ruff.lint]
# Ignore complexity
ignore = ["C901"]
select = [
# flake8-bugbear
"B",
# pylint
"C", "R",
# pydocstyle
"D",
# pycodestyle
"E", "W",
# Pyflakes
"F", "FA",
# pyupgrade
"I",
# pep8-naming
"N",
# isort
"UP",
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = false
[tool.numpydoc_validation]
# report on all checks, except the below
checks = [
"all",
"EX01",
"SA01",
"ES01",
]
# Don't report on objects that match any of these regex
exclude = [
".__weakref__$",
".__repr__$",
]
[tool.uv]
default-groups = [
"dev",
"docs",
"pre-commit",
]