forked from spacetelescope/rad
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (133 loc) · 4.01 KB
/
pyproject.toml
File metadata and controls
153 lines (133 loc) · 4.01 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
143
144
145
146
147
148
149
150
151
152
153
[project]
name = "rad"
description = "Roman Attribute Dictionary"
requires-python = ">=3.11"
authors = [{ name = "STScI" }]
classifiers = [
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
"Programming Language :: Python :: 3",
]
dependencies = [
"asdf>=4.1.0",
"asdf-astropy>=0.8.0",
"asdf-standard>=1.1.0",
"deepdiff>=8.1",
"pyyaml>=6.0",
"semantic-version>=2.10.0",
]
license-files = ["LICENSE"]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.optional-dependencies]
test = [
"crds>=12.0.4",
"GitPython>=3.1.44",
"pytest-asdf-plugin>=0.1.0",
"pytest-doctestplus>=1.2.1",
"pytest>=7.0.0",
]
script = ["GitPython>=3.1.44", "astropy>=6.0.0", "textual>=3.1"]
docs = [
"sphinx",
"sphinx-asdf>=0.1.3",
"sphinx-astropy",
"sphinx-rtd-theme",
"astropy>=5.0.4",
"graphviz",
"matplotlib",
"docutils",
"importlib-metadata",
"towncrier",
]
[project.urls]
"Bug Tracker" = "https://github.com/spacetelescope/rad/issues"
"Source Code" = "https://github.com/spacetelescope/rad"
[project.entry-points."asdf.resource_mappings"]
rad = "rad.integration:get_resource_mappings"
[build-system]
requires = ["setuptools >=61", "setuptools_scm[toml] >=3.4"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "src/rad/_version.py"
version_scheme = "release-branch-semver"
[tool.setuptools.packages.find]
where = ["src"]
[tool.rad-versioning]
base_release = "0.25.0"
[tool.pytest.ini_options]
minversion = "7.0"
doctest_plus = true
doctest_rst = true
text_file_format = "rst"
log_cli_level = "INFO"
xfail_strict = true
addopts = [
"--color=yes", # color test output
"--doctest-rst", # enable doctests
"--strict-config", # fail on unknown config options
"--strict-markers", # fail on unknown markers
"-ra", # Show summary of all failures/errors
]
testpaths = ["tests", "latest"]
filterwarnings = ["error"]
asdf_schema_tests_enabled = "true"
# All the SSC schemas with a $ref have to be xfailed due to asdf-format/pytest-asdf-plugin#9
asdf_schema_xfail_tests = [
"latest/SSC/CGI/cgi_ancillary.yaml",
"latest/SSC/CGI/cgi_level_1.yaml",
"latest/SSC/CGI/cgi_level_2a.yaml",
"latest/SSC/CGI/cgi_level_2b.yaml",
"latest/SSC/CGI/cgi_level_3.yaml",
"latest/SSC/CGI/cgi_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_catalog_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_combined_1d_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_decontam_2d_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_individual_1d_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_location_table_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_dqa_2d_level_4.yaml",
"latest/SSC/GDPS/wfi_spec_catalog_dqa_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_event_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_light_curve_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_object_periodic_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_object_fiducial_catalog_level_4.yaml",
"latest/SSC/MSOS/wfi_microlensing_reference_frame_level_3.yaml",
"latest/SSC/MSOS/wfi_microlensing_variability_catalog_level_4.yaml",
]
asdf_schema_root = "latest"
[tool.ruff]
line-length = 130
[tool.ruff.lint]
extend-select = [
"UP", # PyUpgrade
"I", # isort
"B", # BugBear
"S", # Bandit
"RUF", # ruff specific
"NPY", # numpy specific
]
[tool.ruff.lint.per-file-ignores]
"tests/**.py" = [
"S101", # Bandit: Use of assert detected (fine in test files)
]
[tool.codespell]
skip = "*.pdf,*.fits,*.asdf,.tox,build,./tags,.git,docs/_build"
[tool.towncrier]
filename = "CHANGES.rst"
directory = "changes"
package = "rad"
title_format = "{version} ({project_date})"
ignore = [".gitkeep"]
wrap = true
issue_format = "`#{issue} <https://github.com/spacetelescope/rad/issues/{issue}>`_"
[tool.towncrier.fragment.feature]
name = "New Features"
[tool.towncrier.fragment.bugfix]
name = "Bug Fixes"
[tool.towncrier.fragment.doc]
name = "Documentation"
[tool.towncrier.fragment.removal]
name = "Deprecations and Removals"
[tool.towncrier.fragment.misc]