-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpyproject.toml
125 lines (111 loc) · 2.87 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
[build-system]
# build the package with [flit](https://flit.readthedocs.io)
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "parsevasp"
dynamic = ["version"] # read from parsevasp/__init__.py
description = "A general parser for VASP"
authors = [{name = "Espen Flage-Larsen ", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE.txt"}
classifiers = [
"Programming Language :: Python",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Chemistry"
]
keywords = ["vasp", "parser"]
requires-python = ">=3.9"
dependencies = [
"numpy",
"lxml",
"pyyaml"
]
[project.urls]
Source = "https://github.com/aiida-vasp/parsevasp"
[project.optional-dependencies]
tests = [
"pytest~=7.0",
"pytest-cov~=2.7,<2.11",
"coverage~=6.0"
]
pre-commit = [
"pre-commit~=2.2",
]
[tool.flit.module]
name = "parsevasp"
[tool.coverage.run]
# Configuration of [coverage.py](https://coverage.readthedocs.io)
# reporting which lines of your plugin are covered by tests
source=["parsevasp"]
[tool.ruff]
exclude = [
"cookiecutters",
"tutorials",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
line-length = 120
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint]
ignore = [
'F403', # Star imports unable to detect undefined names
'F405', # Import may be undefined or defined from star imports
'PLR0911', # Too many return statements
'PLR0912', # Too many branches
'PLR0913', # Too many arguments in function definition
'PLR0915', # Too many statements
'PLR2004', # Magic value used in comparison
'RUF005', # Consider iterable unpacking instead of concatenation
'RUF012', # Mutable class attributes should be annotated with `typing.ClassVar`
'N802', # invalid-function-name
]
select = [
'E', # pydocstyle
'W', # pydocstyle
'F', # pyflakes
'I', # isort
'N', # pep8-naming
'PLC', # pylint-convention
'PLE', # pylint-error
'PLR', # pylint-refactor
'PLW', # pylint-warning
'RUF' # ruff
]
[tool.ruff.lint.per-file-ignores]
"**/tests/*" = ["F403", "N803"]