-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
108 lines (91 loc) · 3.04 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
[build-system]
requires = ["setuptools>=64.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "dist-s1-enumerator"
authors = [
{ name = "Richard West, Charlie Marshak, Talib Oliver-Cabrera, and Jungkyo Jung", email = "[email protected]"},
]
description = "Enumeration and ops library for the OPERA DIST-S1 project"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.12"
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
license = { text = "Apache-2.0" }
dynamic = ["version"]
dependencies = ["numpy"]
[project.urls]
Homepage = "https://github.com/opera-adt/dist-s1-enumerator"
"Bug Tracker" = "https://github.com/opera-adt/dist-s1-enumerator/issues"
"Discussions" = "https://github.com/opera-adt/dist-s1-enumerator/discussions"
"Changelog" = "https://github.com/opera-adt/dist-s1-enumerator/releases"
[project.scripts]
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["notebooks*", "tests*"]
[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }
[tool.pytest.ini_options]
markers = [
"integration: tests that require internect access for end-to-end testing",
"notebooks: tests that require notebooks to be run; often slow",
]
[tool.setuptools_scm]
[tool.ruff]
line-length = 120
src = ["src", "tests"]
exclude = [
".eggs",
".git",
".ipynb_checkpoints",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"site-packages",
"notebooks/*",
"tests/data/*",
]
indent-width = 4
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
[tool.ruff.lint]
select = [
"F", # flake8: https://docs.astral.sh/ruff/rules/#flake8-f
"E", # flake8: https://docs.astral.sh/ruff/rules/#flake8-e
"I", # isort: https://docs.astral.sh/ruff/rules/#isort-i
"UP", # pyupgrade: https://docs.astral.sh/ruff/rules/#pyupgrade-up
"D", # pydocstyle: https://docs.astral.sh/ruff/rules/#pydocstyle-d
"ANN", # annotations: https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"PTH", # use-pathlib-pth: https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
"TRY", # tryceratops
]
ignore = [
"D100", # Missing docstring in public module
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"TRY003", # Avoid specifying long messages outside the exception
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
case-sensitive = true
lines-after-imports = 2