-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpyproject.toml
165 lines (153 loc) · 4.22 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
164
165
[project]
name = "asdf-astropy"
description = "ASDF serialization support for astropy"
readme = 'README.rst'
license = { file = 'LICENSE.rst' }
authors = [{ name = 'The Astropy Developers', email = '[email protected]' }]
requires-python = '>=3.11'
classifiers = [
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dynamic = [
'version',
]
dependencies = [
"asdf>=2.14.4",
"asdf-coordinates-schemas>=0.3",
"asdf-transform-schemas>=0.5",
"asdf-standard>=1.1.0",
"astropy>=5.2.0",
"numpy>=1.25",
"packaging>=19",
]
[project.optional-dependencies]
docs = [
"docutils",
"graphviz",
"matplotlib",
"sphinx",
"sphinx-asdf",
"sphinx-astropy",
"sphinx-automodapi",
"tomli",
]
test = [
"coverage",
"pytest-astropy",
"pytest",
"scipy", # indirect requirement via astropy
]
[project.urls]
'documentation' = 'https://asdf-astropy.readthedocs.io/en/latest/'
'repository' = 'https://github.com/astropy/asdf-astropy'
'tracker' = 'https://github.com/astropy/asdf-astropy/issues'
[project.entry-points]
'asdf.extensions' = {asdf-astropy = 'asdf_astropy.integration:get_extensions'}
'asdf.resource_mappings' = {asdf-astropy = 'asdf_astropy.integration:get_resource_mappings'}
[build-system]
build-backend = 'setuptools.build_meta'
requires = [
"setuptools>=60",
"setuptools_scm[toml]>=3.4",
]
[tool.setuptools]
packages = ["asdf_astropy", "asdf_astropy.resources"]
[tool.setuptools.package-data]
"asdf_astropy.resources" = ["asdf_astropy/resources/**/**/*.yaml"]
[tool.setuptools_scm]
write_to = "asdf_astropy/_version.py"
[tool.black]
line-length = 120
force-exclude = '''
^/(
(
\.eggs
| \.git
| \.pytest_cache
| \.tox
)/
)
'''
[tool.ruff]
target-version = "py311"
line-length = 120
select = ["ALL"]
extend-ignore = [
# Ignore check groups
"C90", # mccabe
"D", # pydocstyle
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"DTZ", # flake8-datetimez
"TD", # flake8-todos
"FIX", # flake8-fixme
"SIM", # flake8-simplify
# Individually ignored checks
"SLF001", # private-member-access
"FBT001", # boolean positional arguments in function definition
"RUF012", # mutable class attributes should be annotated with typing.ClassVar
"PTH123", # replace open with Path.open
"B905", # zip with strict
"UP038", # isinstance with | instead of ,
]
extend-exclude = ["docs/*"]
[tool.ruff.per-file-ignores]
"test_*.py" = ["S101"]
"asdf_astropy/testing/helpers.py" = ["S101"]
"scripts/generate_manifest.py" = ["S101", "SLOT000"]
[tool.isort]
profile = "black"
filter_files = true
line_length = 120
[tool.pytest.ini_options]
testpaths = ['asdf_astropy', 'docs']
astropy_header = true
doctest_plus = 'enabled'
text_file_format = 'rst'
filterwarnings = [
'error',
'ignore:numpy.ndarray size changed:RuntimeWarning',
]
addopts = '--color=yes --doctest-rst'
asdf_schema_root = 'asdf_astropy/resources/schemas'
asdf_schema_tests_enabled = true
[tool.coverage.run]
omit = [
'asdf_astropy/_astropy_init*',
'asdf_astropy/conftest.py',
'asdf_astropy/*setup_package*',
'asdf_astropy/tests/*',
'asdf_astropy/*/tests/*',
'asdf_astropy/extern/*',
'asdf_astropy/version*',
'*/asdf_astropy/_astropy_init*',
'*/asdf_astropy/conftest.py',
'*/asdf_astropy/*setup_package*',
'*/asdf_astropy/tests/*',
'*/asdf_astropy/*/tests/*',
'*/asdf_astropy/extern/*',
'*/asdf_astropy/version*',
]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about packages we have installed
'except ImportError',
# Don't complain if tests don't hit assertions
'raise AssertionError',
'raise NotImplementedError',
# Don't complain about script hooks
'def main\(.*\):',
# Ignore branches that don't pertain to this version of Python
'pragma: py{ignore_python_version}',
# Don't complain about IPython completion helper
'def _ipython_key_completions_',
]
[tool.codespell]
skip="*.pdf,*.fits,*.asdf,*.egg-info,.tox,build,./tags,.git,./docs/_build"