-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
118 lines (96 loc) · 2.34 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
[build-system]
requires = ['setuptools>=64']
build-backend = "setuptools.build_meta"
[project]
name = "astro-otter"
authors = [{name = "Noah Franz", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
dynamic = ["version"]
requires-python = ">=3.10,<3.12"
classifiers = [
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 2 - Pre-Alpha"
]
dependencies = [
# necessary dependencies for the src code
"numpy>=1.20,<2",
"astropy>=6",
"pandas",
"synphot",
"typing-extensions",
"pyarango",
# for the plotting
"matplotlib",
"plotly",
# for the DataFinder query tool
"astroquery",
"ads",
"skypatrol",
"fundamentals",
"astro-datalab",
"sparclclient",
"astro-ghost",
# for the schema validation
"pydantic",
# only for windows OS b/c it doesn't ship with readline by default
'pyreadline3; platform_system == "Windows"'
]
[project.urls]
Home = "https://github.com/astro-otter"
[project.optional-dependencies]
# tools for building the readthedocs page
docs = [
"Sphinx>=3.0.0",
"myst-parser>=0.13",
"nbsphinx>=0.9.1",
"sphinx-book-theme>=0.0.33",
"sphinx_copybutton",
"autodoc",
"ipykernel"
]
# useful tools for developers
dev = [
"ruff", # linter
"pre-commit", # enable pre-commit hooks
]
[tool.setuptools.packages.find]
where = ['src']
[tool.setuptools.dynamic]
version = {attr = 'otter._version.__version__'}
[tool.ruff]
# put in some excluded files
exclude = [
"*/__init__.py"
]
# set the maximum line length to 79 characters
line-length = 88
indent-width = 4
[tool.ruff.lint]
# select some other rules to add
select = [
# pycodestyle
"E",
# pyflakes
"F",
# pep8-naming
"N",
# warnings
"W"
]
# ignore a few rules that don't matter to us or just throw errors that are wrong
ignore = ['E712']
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
indent-style = "space"
quote-style = "double"