-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
119 lines (104 loc) · 2.61 KB
/
Copy pathpyproject.toml
File metadata and controls
119 lines (104 loc) · 2.61 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
[project]
dynamic = ["version"]
name = "so_campaign_manager"
description = "A campaign manager to execute SO mapmaking campaign"
readme = 'README.md'
requires-python = '>=3.11,<3.13'
authors = [{ name = 'Giannis Paraskevakos', email = 'iparask@princeton.edu' }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"numpy",
"pydantic>=2.0",
"radical.pilot; sys_platform != 'darwin'",
"networkx",
"toml",
"click",
"slurmise; sys_platform != 'darwin'",
"humanfriendly",
]
[project.optional-dependencies]
mapmaking = [
"sotodlib",
"astral",
]
[build-system]
requires = ["setuptools>=61", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "src/socm/__about__.py"
[tool.taskipy.tasks]
check = "mypy --install-types --non-interactive src/socm tests"
test = "pytest --cov=socm --random-order"
fmt-check = "ruff format --check . && ruff check ."
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
# This installs the file with the package
"socm" = ["configs/*.toml"]
[project.scripts]
socm = "socm.__main__:main"
[tool.coverage.run]
source_pkgs = ["socm", "tests"]
branch = true
parallel = true
omit = ["src/socm/_version.py"]
[tool.coverage.paths]
socm = ["src/socm", "*/so_mapmaking_campaign_manager/src/socm"]
tests = ["tests", "*/so_mapmaking_campaign_manager/tests"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover"]
exclude_also = ["if TYPE_CHECKING:"]
omit = ["*/so_mapmaking_campaign_manager/src/socm/__main__.py"]
[tool.isort]
line_length = 120
profile = "black"
skip = ["docs", ".github", ".vscode", "container", "env", "env311", "build"]
[tool.ruff]
line-length = 120
exclude = ["docs", ".github", ".vscode", "container", "env", "env311", "build"]
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = false
# Third-party libraries without stubs
[[tool.mypy.overrides]]
module = [
"radical.*",
"slurmise.*",
"sotodlib.*",
"astropy.*",
"humanfriendly",
]
ignore_missing_imports = true
[dependency-groups]
dev = [
"ruff",
"darker",
"flake8",
"isort",
"coverage",
"pytest-cov>=2.6",
"coveralls>=1.5",
"pytest>=4.6",
"hypothesis",
"pre-commit",
"mypy>=1.0.0",
"taskipy",
"types-networkx",
"types-pytz",
"types-toml",
"types-mock",
"ipython"
]
docs = [
"sphinx",
"sphinx_rtd_theme",
"sphinxcontrib-napoleon",
"sphinx-autodoc-typehints",
"myst-parser",
]