-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
141 lines (126 loc) · 3.18 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
[project]
name = "borfile"
authors = [{name = "Salem Harrache", email = "[email protected]"}]
dynamic = ["version", "description"]
readme = {file = "README.rst", content-type = "text/x-rst"}
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"click",
"xarray",
"scipy",
"xmltodict",
"stream-zip",
]
[project.urls]
Home = "https://bor-form.at"
Source = "https://github.com/LIMSAS/borfile"
Changes = "https://github.com/LIMSAS/borfile/blob/master/CHANGES.rst"
[project.optional-dependencies]
test = [
"coverage",
"pytest",
"pytest-cases",
"pytest-cov",
"pytest-datafiles",
"pytest-sugar",
]
extra = [
"lxml",
"pyarrow",
"zarr",
]
dev = [
"black",
"bump-my-version",
"ruff",
"isort",
"jedi",
"pdbpp",
]
plot = [
"jupyterlab",
"matplotlib",
]
[project.scripts]
bor2json = "borfile.cli:convert_to_json"
bor2csv = "borfile.cli:convert_to_csv"
borfile = "borfile.cli:bor_dump"
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "borfile"
[tool.flit.sdist]
include = [
"docs/",
"tests/",
"CHANGES.rst",
"README.rst",
]
[tool.distutils.bdist_wheel]
universal = true
[tool.pytest.ini_options]
minversion = "6.0"
norecursedirs = ".git .tox venv env build"
addopts = "--doctest-modules --tb native -r fxX --maxfail=100 --ignore=setup.py --ignore=scripts"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL ALLOW_UNICODE"
filterwarnings = [
"ignore::DeprecationWarning"
]
[tool.bumpversion]
current_version = "0.1.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+\\d+))?"
serialize = [
"{major}.{minor}.{patch}.{release}",
"{major}.{minor}.{patch}"
]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = true
commit = true
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []
[tool.bumpversion.parts.release]
values = ["dev0", "gamma"]
optional_value = "gamma"
[[tool.bumpversion.files]]
filename = "src/borfile/__init__.py"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"E", # pycodestyle error
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle warning
]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
#select = ["E4", "E7", "E9", "F"]
ignore = []
[tool.ruff.lint.extend-per-file-ignores]
# Also ignore `E402` in all `__init__.py` files.
"__init__.py" = ["F401"]
"*.ipynb" = ["F401"]
[tool.ruff.lint.isort]
force-single-line = true
order-by-type = false