-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
130 lines (119 loc) · 3.06 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
[project]
name = "qusi"
dynamic = ["version"]
description = ""
authors = [
{ name = "Greg Olmschenk", email = "[email protected]" },
]
readme = "README.md"
requires-python = ">=3.9"
packages = [
{ include = "ramjet", from = "src" },
{ include = "qusi", from = "src" }
]
dependencies = [
"retrying>=1.3.4",
"tenacity>=8.1.0",
"numpy>=1.24.1,<2.0.0",
"pandas>=1.5.3",
"astropy>=5.2.1",
"astroquery>=0.4.6",
"requests>=2.28.2",
"pytest>=7.2.1,<8",
"pyarrow>=11.0.0",
"gitpython>=3.1.30",
"matplotlib>=3.6.3",
"pipreqs>=0.4.11",
"bokeh>=3.0.0",
"scipy>=1.10.0",
"setuptools>=67.1.0",
"peewee>=3.15.4",
"pytest-asyncio>=0.20.3",
"wandb>=0.13.9",
"plotly>=5.13.0",
"tornado>=6.2",
"beautifulsoup4>=4.11.2",
"lxml>=4.9.2",
"lightkurve>=2.3.0",
"uvloop>=0.17.0; platform_system != 'Windows'",
"filelock>=3.9.0",
"torch>=2.0.1",
"torchvision>=0.15.2",
"polars>=0.19.10",
"torchmetrics>=1.2.0",
"stringcase>=1.2.0",
"atpublic>=4.0",
"pytest-pycharm>=0.7.0",
"furo>=2023.9.10",
"sphinx>=6.1.3",
"backports.strenum",
"typing_extensions",
"myst-parser",
"torcheval>=0.0.7",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "src/qusi/__about__.py"
[tool.hatch.build.targets.wheel]
packages = [
"src/qusi",
"src/ramjet",
]
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
[[tool.hatch.envs.all.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.types]
dependencies = [
"mypy>=1.0.0",
]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/qusi tests}"
[tool.coverage.run]
source_pkgs = ["qusi", "tests"]
branch = true
parallel = true
omit = [
"src/qusi/__about__.py",
]
[tool.coverage.paths]
qusi = ["src/qusi", "*/qusi/src/qusi"]
tests = ["tests", "*/qusi/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff]
extend-exclude = ["examples"]
[tool.ruff.lint]
ignore = [
"RET504", # Subjective but, naming the returned value often seems to help readability.
"SIM108", # Subjective but, ternary operators are often too confusing.
# We don't expect use cases of the frame to need to worry about security issues.
"S608",
"S301",
"S311",
"EM102", # The improved source readability is worth the loss in readibility of the traceback in my opinion.
"TRY003", # Disabling EM102 makes this rule trigger in areas it shouldn't.
"G004", # The improved source readability is worth the extra string evaluation cost in my opinion.
"N812", # Bokeh uses lowercase for its figure class, and not changing that messes with other conventions.
]
isort.known-first-party = ["qusi", "ramjet"]