forked from basf/pytopas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (111 loc) · 3.16 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
[build-system]
# build the package with [flit](https://flit.readthedocs.io)
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "pytopas"
version = "0.0.3"
description = """Bruker's TOPAS macro language parser"""
authors = [{name = "Sergei Korolev", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"} # TODO
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Information Analysis"
]
keywords = ["TOPAS", "XRPD", "Rietveld refinement", "pair distribution function", "stacking-faults", "charge flipping", "structure solution", "deconvolution"]
requires-python = ">=3.8"
dependencies = [
"pyparsing >= 3",
"typing-extensions >= 4.2.0; python_version < '3.11'",
]
[project.optional-dependencies]
lint = [
"autoflake",
"black >= 23.1",
"flake8",
"flake8-bugbear",
"isort",
"pylint",
"pylint-per-file-ignores >= 1, <1.3",
"pyupgrade",
]
test = [
"pytest",
"pytest-cov",
]
release = [
"commitizen",
"flit",
]
[project.urls]
Home = "https://github.com/metis-science/pytopas"
Changelog = "https://github.com/metis-science/pytopas/blob/master/CHANGELOG.md"
Issues = "https://github.com/metis-science/pytopas/issues"
Source = "https://github.com/metis-science/pytopas"
[project.scripts]
topas2json = "pytopas.cli:topas2json"
json2topas = "pytopas.cli:json2topas"
[tool.autoflake]
expand-star-imports = true
ignore-init-module-imports = true
remove-all-unused-imports = true
remove-duplicate-keys = true
remove-unused-variables = true
[tool.black]
target-version = ['py38', 'py39', 'py310', 'py311']
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
major_version_zero = true
version_files = [
"pyproject.toml:^version",
"pytopas/__init__.py:^__VERSION__",
]
version_provider = "pep621"
update_changelog_on_bump = true
[tool.coverage.run]
omit = ['tests/*']
[tool.flit.module]
name = "pytopas"
[tool.isort]
profile = "black"
py_version = 38
[tool.pylint.MASTER]
load-plugins=[
"pylint_per_file_ignores",
]
[tool.pylint.main]
jobs = 0
py-version = "3.8"
recursive = true
suggestion-mode = true
[tool.pylint.basic]
good-names = ["id", "kv", "op", "x", "xy", "y", "_", "__"]
[tool.pylint.design]
max-args = 7
max-attributes = 10
min-public-methods = 1
[tool.pylint.format]
max-line-length = 88
[tool.pylint.reports]
output-format = "colorized"
reports = "no"
score = "no"
[tool.pylint-per-file-ignores]
"/tests/" = "redefined-outer-name"
[tool.pytest.ini_options]
addopts = "--cov=pytopas --cov-report=term --no-cov-on-fail --cov-fail-under=99"