-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (115 loc) · 3.88 KB
/
pyproject.toml
File metadata and controls
127 lines (115 loc) · 3.88 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
120
121
122
123
124
125
126
127
[project]
name = "nanonis-xarray"
description = "Read a Nanonis spectroscopy .dat file into a xarray Dataset"
authors = [{ name = "Angelo Peronio" }]
license = "MIT"
keywords = [
"Nanonis",
"Mimea",
"SPECS",
"xarray",
"Scanning Tunnelling Microscopy",
"STM",
"Inelastic Electron Tunnelling Spectroscopy",
"STM-IETS",
"Scanning Tunnelling Spectroscopy",
"STS",
"Scanning Probe Spectroscopy",
"SPS",
"Atomic Force Microscopy",
"AFM",
]
dynamic = ["version"]
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
# Wait for NumPy and pandas to publish their compiled wheels
# for a new Python version before supporting it.
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: File Formats",
"Topic :: Scientific/Engineering :: Physics",
"Typing :: Typed",
]
# Scientific Python recommendation on versions to support:
# <https://scientific-python.org/specs/spec-0000/>
requires-python = ">= 3.11"
# Before attempting stunts here, consider the fragile logic
# for oldest_deps in noxfile.py.
dependencies = ["numpy >= 2.0.0", "xarray >= 2025.6", "pint-xarray >= 0.5"]
[dependency-groups]
dev = [
"bump-my-version",
"cffconvert",
"prek",
"ruff",
"ty",
{ include-group = "test" },
{ include-group = "docs" },
]
test = ["nox >= 2025.2.9", "packaging", "pytest > 9", "pytest-cov"]
docs = ["ipykernel", "ipympl", "seaborn"]
[project.urls]
Repository = "https://github.com/angelo-peronio/nanonis-xarray"
Issues = "https://github.com/angelo-peronio/nanonis-xarray/issues"
[project.entry-points."xarray.backends"]
nanonis_dat = "nanonis_xarray.nanonis_dat_backend_entrypoint:NanonisDatBackendEntrypoint"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch]
build.targets.sdist.exclude = ["/.**", "/scripts", "development.md", "uv.lock"]
version.source = "vcs"
[tool.hatch.version.raw-options]
# Version tag pattern: v[major].[minor].[patch]
# https://setuptools-scm.readthedocs.io/en/latest/config/#setuptools_scm._config.DEFAULT_TAG_REGEX
# Single quote --> literal string, https://toml.io/en/v1.0.0#string
tag_regex = '^(?P<version>v?\d+\.\d+\.\d+)$'
# To be able to publish dev versions to TestPyPI.
# https://github.com/ofek/hatch-vcs/discussions/12
local_scheme = "no-local-version"
[tool.pytest]
addopts = ["-ra", "--doctest-glob=README.md", "--showlocals"]
filterwarnings = ["error"]
log_level = "DEBUG"
minversion = "9"
testpaths = ["README.md", "tests"]
strict = true
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"ANN", # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"COM812", # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
"RET504", # https://docs.astral.sh/ruff/rules/unnecessary-assign/
]
extend-per-file-ignores."tests/*.py" = [
"S101", # https://docs.astral.sh/ruff/rules/assert/
"PLR2004", # https://docs.astral.sh/ruff/rules/magic-value-comparison/
]
pydocstyle.convention = "numpy"
[tool.mypy]
files = ["src", "tests", "noxfile.py"]
strict = true
warn_unreachable = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
[tool.bumpversion]
tag = true
tag_name = "v{new_version}"
tag_message = "Version v{new_version}"
commit = true
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = 'version: {current_version}'
replace = 'version: {new_version}'
[[tool.bumpversion.files]]
filename = "CITATION.cff"
search = 'date-released: "\d{{4}}-\d{{2}}-\d{{2}}"'
replace = 'date-released: "{utcnow:%Y-%m-%d}"'
regex = true