-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
134 lines (120 loc) · 2.84 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
[build-system]
requires = [
"setuptools",
"setuptools-scm<8.0"]
build-backend = "setuptools.build_meta"
[project]
name = "rubin-scheduler"
description = "Scheduling algorithms for Vera C. Rubin Observatory's Legacy Survey of Space and Time (LSST)."
readme = "README.md"
license = { file = "LICENSE" }
keywords = [
"rubin",
"lsst",
]
classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Astronomy",
]
urls = {documentation = "https://rubin-scheduler.lsst.io", repository = "https://github.com/lsst/rubin_scheduler" }
dynamic = [ "version" ]
dependencies = [
"numpy",
"matplotlib",
"healpy",
"numexpr",
"scipy<1.14",
"astropy",
"astroplan",
"tables",
"h5py",
"requests",
"shapely",
"tqdm",
"gitpython",
]
[project.optional-dependencies]
test = [
"pytest",
"black",
"ruff",
"isort",
"pytest-cov",
"lsst.resources",
]
dev = [
"documenteer[guide]",
]
[project.scripts]
scheduler_download_data = "rubin_scheduler.data.scheduler_download_data:scheduler_download_data"
rs_download_sky = "rubin_scheduler.data.rs_download_sky:rs_download_sky"
archive_sim = "rubin_scheduler.sim_archive:make_sim_archive_cli"
compile_sim_archive_metadata_resource = "rubin_scheduler.sim_archive.sim_archive:compile_sim_archive_metadata_cli"
prenight_sim = "rubin_scheduler.sim_archive:prenight_sim_cli"
scheduler_snapshot = "rubin_scheduler.sim_archive:make_scheduler_snapshot_cli"
[tool.setuptools.dynamic]
version = { attr = "setuptools_scm.get_version" }
[tool.setuptools.packages.find]
where = [ "" ]
[tool.setuptools_scm]
#version_file = "rubin_scheduler/version.py"
write_to = "rubin_scheduler/version.py"
write_to_template = """
# Generated by setuptools_scm
__all__ = ["__version__"]
__version__ = "{version}"
"""
[tool.pytest.ini_options]
addopts = "--ignore-glob=*/version.py --ignore-glob=*data_dir/*"
[tool.mypy]
disallow_untyped_defs = "True"
ignore_missing_imports = "True"
exclude = "version.py"
[tool.black]
line-length = 110
target-version = ["py311"]
[tool.isort]
profile = "black"
line_length = 110
skip = ["docs/conf.py"]
[tool.ruff]
exclude = [
"__init__.py",
]
ignore = [
"N802",
"N803",
"N806",
"N812",
"N815",
"N816",
"N999",
"D107",
"D105",
"D102",
"D104",
"D100",
"D200",
"D205",
"D400",
"E712",
]
line-length = 110
select = [
"E", # pycodestyle
"F", # pyflakes
"N", # pep8-naming
"W", # pycodestyle
]
target-version = "py311"
extend-select = [
"RUF100", # Warn about unused noqa
]
[tool.ruff.pycodestyle]
max-doc-length = 79
[tool.ruff.pydocstyle]
convention = "numpy"