-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
163 lines (141 loc) · 4.02 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
[project]
name = "interpolated_coordinates"
version = "0.1.0"
description = "Univariate Interpolations of Astropy Coordinates"
readme = "README.rst"
requires-python = ">=3.9"
license = {file = "licenses/LICENSE.rst"}
keywords = ["interpolate", "interpolation", "coordinates", "astronomy"]
authors = [
{name = "Nathaniel Starkman"}
]
maintainers = [
{name = "Nathaniel Starkman", email = "n.starkman@mail.utoronto.ca"}
]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Astronomy",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"astropy>=5.0",
"numpy",
"scipy>=1.6",
"typing_extensions",
]
[build-system]
requires = [
"setuptools>=45",
"setuptools_scm>=6.2",
"extension_helpers",
]
build-backend = 'setuptools.build_meta'
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools_scm]
[project.optional-dependencies]
test = [
"coverage[toml]",
"matplotlib>=3.3",
"pytest>=7.0",
"pytest-astropy",
]
docs = [
"graphviz",
"matplotlib>=3.3",
"sphinx-astropy",
"sphinx",
"tomlkit",
]
[project.urls]
repository = "https://github.com/nstarman/interpolated-coordinates"
documentation = "https://github.com/nstarman/interpolated-coordinates"
[tool.ruff]
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `*args`
"D102", # Missing docstring in public method
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D213", # Multi-line docstring summary should start at the second line
# (FIX)
"FIX002", # Line contains TODO
"D401", # First line should be in imperative mood
"SLF001", # Private member accessed
"TD0", # TODO stuff
]
[tool.ruff.lint.per-file-ignores]
"docs/*.py" = ["D100", "INP001"]
"docs/conftest.py" = ["ANN001", "ANN202"]
"src/inerpolated_coordinates/conftest.py" = ["ANN001"]
"tests/*.py" = ["ANN", "ARG002", "N801", "PLR2004", "S101"]
[tool.ruff.lint.isort]
known-first-party = ["interpolated_coordinates"]
[tool.ruff.lint.pylint]
max-args = 15
[tool.mypy]
python_version = 3.9
strict = true
disallow_untyped_defs = true
ignore_missing_imports = true
no_implicit_optional = true
warn_return_any = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unreachable = true
exclude = '''(^|/)docs/|(^|/)tests/'''
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
[[tool.mypy.overrides]]
module = [
"docs/*",
"tests/*",
]
ignore_errors = true
[tool.pytest.ini_options]
minversion = "7.0"
log_cli_level = "INFO"
xfail_strict = true
testpaths = [
"src/interpolated_coordinates",
"docs",
]
astropy_header = "True"
doctest_plus = "enabled"
text_file_format = "rst"
addopts = ["-ra", "--strict-config", "--strict-markers", "--doctest-rst"]
filterwarnings = [
# tomlkit
"ignore:The config value `project' has type `String', defaults to `str'.",
"ignore:The config value `htmlhelp_basename' has type `String', defaults to `str'.",
]
[tool.coverage.run]
omit = [
"*/interpolated_coordinates/conftest.py",
"*/interpolated_coordinates/*setup_package*",
"*/interpolated_coordinates/_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_",
]