-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (129 loc) · 3.25 KB
/
pyproject.toml
File metadata and controls
142 lines (129 loc) · 3.25 KB
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
133
134
135
136
137
138
139
140
141
142
[project]
name = "uploader"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"python-dotenv>=1.0.0",
"structlog>=25.3.0",
"astroquery>=0.4.10",
"astropy>=7.1.0",
"openapi-python-client>=0.27.1",
"pandas>=2.3.3",
"numpy>=2.3.4",
"pyvo>=1.8",
"psycopg[binary]>=3.2.0",
"click~=8.3.1",
]
[project.scripts]
"uploader" = "uploader.cli:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"ruff~=0.15.0",
"pandas-stubs>=2.2.3.250308",
"pytest~=9.0.2",
"basedpyright~=1.38.3",
]
[tool.pytest.ini_options]
pythonpath = ["."]
[tool.ruff]
line-length = 120
src = ["."]
[tool.ruff.lint]
ignore = [
"N818", # ignore SomeException -> SomeError rule
"B024", # abstract class without abstract methods
"B017", # ignore assertRaises(Exception)
"B027", # empty method without abstract decorator
]
# see https://docs.astral.sh/ruff/rules/ for description of each rule set.
select = [
"E",
"F",
"I",
"N",
"UP",
"YTT",
"B",
"A",
"C4",
"DTZ",
"PIE",
"RET",
"SLF",
"PTH",
"PLE",
"FLY",
"NPY201",
"PLC0415",
"S101",
]
[tool.basedpyright]
typeCheckingMode = "off"
venvPath = "."
venv = ".venv"
### warns
reportDeprecated = "warning"
reportIncompatibleMethodOverride = "warning"
reportIncompatibleVariableOverride = "warning"
reportMatchNotExhaustive = "warning"
### pyright issues
reportGeneralTypeIssues = "error"
reportFunctionMemberAccess = "error"
reportMissingImports = "error"
reportMissingModuleSource = "error"
reportInvalidTypeForm = "error"
reportUnusedImport = "error"
reportUnusedClass = "error"
reportUnusedFunction = "error"
reportUnusedVariable = "error"
reportDuplicateImport = "error"
reportWildcardImportFromLibrary = "error"
reportAbstractUsage = "error"
reportAssertTypeFailure = "error"
reportCallIssue = "error"
reportInconsistentOverload = "error"
reportIndexIssue = "error"
reportInvalidTypeArguments = "error"
reportNoOverloadImplementation = "error"
reportRedeclaration = "error"
reportConstantRedefinition = "error"
reportPossiblyUnboundVariable = "error"
reportInvalidStringEscapeSequence = "error"
reportUnnecessaryIsInstance = "error"
reportUnnecessaryCast = "error"
reportUnnecessaryComparison = "error"
reportUnnecessaryContains = "error"
reportAssertAlwaysTrue = "error"
reportSelfClsParameterName = "error"
reportUndefinedVariable = "error"
reportUnhashable = "error"
reportUnsupportedDunderAll = "error"
reportUnusedCoroutine = "error"
reportUnusedExcept = "error"
reportUnusedExpression = "error"
reportUnnecessaryTypeIgnoreComment = "error"
reportUnreachable = "error"
### based pyright issues
reportIgnoreCommentWithoutRule = "error"
reportImplicitRelativeImport = "error"
reportUnsafeMultipleInheritance = "error"
reportImplicitAbstractClass = "error"
exclude = [
"frontend/**",
"uploader/clients/gen/**",
".venv/**"
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F403", # ignore star imports warning in __init__ files
]
"tests/**" = ["S101"]
[tool.uv.sources]
astroquery = { git = "https://github.com/astropy/astroquery.git", branch = "main" }