-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
147 lines (133 loc) · 3.65 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "gnatss"
dynamic = ["version"]
description = "Community Seafloor Global Navigation Satellite Systems - Acoustic (GNSS-A) Transponder Surveying Software"
readme = "README.md"
requires-python = ">=3.10,<3.12"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"astropy>=5.2.2,<6",
"fsspec>=2024.5.0,<2025",
"matplotlib>=3.8.0,<4",
"numba>=0.56.4,<1",
# numpy/f2py/f2py2e.py:719
# VisibleDeprecationWarning: distutils has been deprecated since NumPy 1.26.x
# Use the Meson backend instead,
# or generate wrapperswithout -c and use a custom build script
"numpy>=1.23.5,<1.26",
"nptyping>=2.5.0,<3",
"cftime>=1.6.2,<2",
"pandas>=2.0.3,<3",
"pydantic==2.8.2",
"pydantic-settings>=2.0.3,<3",
"pyyaml>=6.0.1,<7",
"pymap3d>=3.0.1,<4",
"pluggy>=1.2.0,<2",
"pyproj>=3.5.0,<4",
"scipy>=1.10.1,<2",
"typer>=0.7.0,<1",
"xarray>=2024.5.0,<2025",
]
[project.optional-dependencies]
docs = [
"jupyter-book",
"numpydoc",
"sphinx-automodapi",
"sphinx-panels",
"sphinx_rtd_theme",
"sphinxcontrib-mermaid",
"autodoc_pydantic>=2.0.1,<3.0"
]
test = [
"nox",
"pre-commit",
"hypothesis",
"pytest",
"pytest-cov",
"pytest-flake8",
"pytest-mock",
"pytest-xdist",
"pytest-benchmark",
"PyGithub",
]
all = [
"gnatss[docs,test]",
]
[project.license]
file = "LICENSE"
[project.urls]
Homepage = "https://github.com/seafloor-geodesy/gnatss"
Documentation = "https://gnatss.readthedocs.io"
Repository = "https://github.com/seafloor-geodesy/gnatss.git"
Issues = "https://github.com/seafloor-geodesy/gnatss/issues"
[project.scripts]
gnatss = "gnatss.cli:app"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/gnatss/version.py"
[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
[tool.hatch.build.targets.sdist]
exclude = [
"/tests",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-vvv", "-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = false
log_cli_level = "info"
testpaths = [
"tests",
]
[tool.ruff]
exclude = ["tests/**", "testing.py"]
line-length = 100
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
]
ignore = [
"F722", # syntax error in forward annotation
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"ISC001", # Conflicts with formatter
]
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["T20"]
"noxfile.py" = ["T20"]
[tool.repo-review]
ignore = [ "PP309", "PC140", "MY100" ]