-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (111 loc) · 2.95 KB
/
pyproject.toml
File metadata and controls
126 lines (111 loc) · 2.95 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
[project]
name = "bor2diggs"
authors = [{name = "Salem Harrache", email = "dev@mail.lim.eu"}]
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 = [
"borfile",
"click",
"pint"
]
[project.urls]
Home = "https://bor-form.at"
Source = "https://github.com/LIMSAS/bor2diggs"
Changes = "https://github.com/LIMSAS/bor2diggs/blob/master/CHANGES.rst"
[project.optional-dependencies]
test = [
"coverage",
"pytest",
"pytest-cases",
"pytest-datafiles",
"pytest-sugar",
]
dev = [
"black",
"bump-my-version",
"ruff",
"isort",
"jedi",
"pdbpp",
]
[project.scripts]
bor2diggs = "bor2diggs.cli:main"
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[tool.flit.module]
name = "bor2diggs"
[tool.flit.sdist]
include = [
"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.2"
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/bor2diggs/__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