-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
163 lines (142 loc) · 4.21 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = ["psutil>=5.9.0", "setuptools>=45", "setuptools_scm[toml]>=6.3", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "atlasserver"
authors = [
{name = "Luke Shingles", email = "luke.shingles@gmail.com"},
]
description="ATLAS Forced Photometry server"
classifiers = [
"License :: OSI Approved :: MIT License",
]
license = {text = "MIT"}
dynamic = ["version", "dependencies"]
requires-python = ">=3.12"
readme = {file = "README.md", content-type='text/markdown'}
[project.urls]
Repository ="https://github.com/lukeshingles/atlasserver"
[project.scripts]
atlaswebserver = 'atlasserver.atlaswebserver:main'
atlastaskrunner = 'atlasserver.atlastaskrunner:main'
[tool.black]
line-length = 120
force-exclude = "plot_atlas_fp.py"
[tool.mypy]
python_version = "3.12"
exclude = "(build)|(tests)|(migrations)|(static)|plot_atlas_fp.py"
ignore_missing_imports = true
plugins = "mypy_django_plugin.main,numpy.typing.mypy_plugin"
warn_unused_ignores = true
warn_redundant_casts = true
strict_optional = true
extra_checks = true
files = "**/*.py"
disallow_incomplete_defs = false
disallow_untyped_calls = false
disallow_untyped_defs = false
check_untyped_defs = false
disallow_untyped_decorators = false
warn_return_any = false
disallow_any_generics = false
disallow_subclassing_any = false
[tool.django-stubs]
django_settings_module = "atlasserver.settings"
[mypy.plugins.django]
ignore_missing_model_attributes = true
[tool.pylint]
max-line-length = 120
errors-only = true
load-plugins = "pylint_django"
django-settings-module = "atlasserver.settings"
[tool.pylint.typecheck]
ignored-modules = ["astropy", "extinction"]
[tool.pylint.MASTER]
ignore-paths = "atlasserver/plot_atlas_fp.py"
[tool.pyright]
exclude=['**/node_modules','**/__pycache__','**/.*', 'build', 'dist', 'target', '**/plot_atlas_fp.py']
[tool.typos]
files.extend-exclude = ["**/plot_atlas_fp.py"]
[tool.ruff]
extend-exclude = ["plot_atlas_fp.py"]
line-length = 120
target-version = "py312"
fix = true
show-fixes = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001",
"A002",
"A003",
"ARG001", # ignored because variables in df.eval() are not detected
"ARG002",
"ANN",
"BLE001",
"C901", # complex-structure
"COM812", # missing-trailing-comma
"D100", # undocumented-public-module
"D101", # undocumented-public-class
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"D104", # undocumented-public-package
"D106",
"D107", # undocumented-public-init
"D203", # one-blank-line-before-class
"D204",
"D213", # multi-line-summary-second-line
"D417", # undocumented-param
"DJ001",
"E402",
"E501", # Line too long
"ERA001", # commented-out-code
"FBT",
"FIX002", # line contains TODO
"INP001",
"ISC001",
"PGH003",
"PLR0911", # too-many-return-statements
"PLR0912", # too-many-branches
"PLR0913", # too-many-arguments
"PLR0915", # too-many-statements
"PLR2004", # magic-value-comparison
"RUF012",
"S101", # Use of assert detected
"S108", # hardcoded-temp-file
"S113",
"S603", # subprocess-without-shell-equals-true
"S605", # start-process-with-a-shell
"S607", # start-process-with-partial-path
"SIM115", # use context handler for opening files
"T201", # print found
"TD002", # missing-todo-author
"TD003", # missing-todo-link
]
fixable = ["ALL"]
unfixable = [
"COM812", # missing-trailing-comma
"ERA001", # commented-out-code (will just delete it!)
"F841", # unused-variable
"SIM222", # expr-or-true
"SIM223", # expr-and-false
]
[tool.ruff.lint.flake8-annotations]
ignore-fully-untyped = true
[tool.ruff.lint.per-file-ignores]
"plot_atlas_fp.py" = ["ALL"]
[tool.ruff.lint.isort]
force-single-line = true
order-by-type = false
[tool.setuptools]
include-package-data = true
license-files = ["LICENSE"]
[tool.setuptools.packages.find]
namespaces = false
where = ["."]
include = ["*", "**/matplotlibrc", "**/data"]
exclude = ["tests", "**/dist", "**/lib", "**/build", "*.egg-info", "**/.*"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools_scm]
write_to = "_version.py"
local_scheme = "no-local-version"