-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
65 lines (59 loc) · 1.63 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
[build-system]
# Version 64.0.0 is needed for editable installs without setup.py file
# https://setuptools.pypa.io/en/latest/references/keywords.html
requires = [
"setuptools>=64.0.0",
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.ruff]
line-length = 88
# TODO: Enable ruff for notebooks
src = ["aiidalab_ispg", "tests"]
target-version = "py39"
[tool.ruff.lint]
# Enable pyflakes and pyf-builtins, pyflakes, f=bugbear
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"C90", # McCabe code complexity
"UP", # pyupgrade
"C4", # comprehensions
"EM", # errormsg
"ISC", # implicit concatenation
"ICN", # import convention
"INP", # no implicit namespace package
"PIE", #
"PT", # pytest style
"PTH", # use Pathlib
"RUF", # ruff-specific rules
"PL", # pylint
"NPY", # numpy-specific rules
]
# E501 line length violation
# S101 Use of assert detected
# PLR0913 Too many arguments in function definition
# PLR2004 Magic value used in comparison
ignore = ["ISC001", "E501", "S101", "PT004", "PLR0913", "PLR2004",]
[tool.ruff.lint.isort]
known-first-party = ["aiida", "aiidalab_widgets_base"]
[tool.bumpver]
current_version = "v0.2.4"
version_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
]
"setup.cfg" = [
'version = {pep440_version}',
]
"aiidalab_ispg/__init__.py" = [
'__version__ = "{pep440_version}"',
]