-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
99 lines (87 loc) · 2.89 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "nomad-parser-plugins-workflow"
version = "1.0"
description = "Collection of NOMAD parsers for workflow engines."
readme = "README.md"
authors = [{ name = "The NOMAD Authors" }]
license = { file = "LICENSE" }
dependencies = [
"nomad-lab>=1.3.6.dev1",
"nomad-schema-plugin-simulation-workflow>=1.0.1",
"nomad-schema-plugin-run>=1.0.1",
"lxml>=5.2",
"asr==0.4.1",
"xarray>=0.20.1",
"phonopy==2.11.0",
"h5py>=3.11.0",
"pydantic>=1.10.8,<2.0.0",
]
[project.urls]
homepage = "https://github.com/nomad-coe/electronic-parsers"
[project.optional-dependencies]
tests = [
"mypy==1.0.1",
"pytest==3.10.0",
"pytest-timeout==1.4.2",
"pytest-cov==2.7.1",
"astroid==2.11.7",
"typing-extensions==4.4.0",
"ruff==0.1.8",
]
[tool.ruff]
include = ["workflowparsers/*.py", "tests/*.py"]
select = [
"E", # pycodestyle
"W", # pycodestyle
"PL", # pylint
]
ignore = [
"E501", # Line too long ({width} > {limit} characters)
"E701", # Multiple statements on one line (colon)
"E731", # Do not assign a lambda expression, use a def
"E402", # Module level import not at top of file
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"PLR2004", # Magic value used instead of constant
"PLW0603", # Using the global statement
"PLW2901", # redefined-loop-name
"PLR1714", # consider-using-in
"PLR5501", # else-if-used
]
fixable = ["ALL"]
# Same as Black.
line-length = 88
indent-width = 4
[tool.ruff.format]
# use single quotes for strings.
quote-style = "single"
# indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.setuptools.packages.find]
include = ["workflowparsers*"]
[project.entry-points.'nomad.plugin']
aflowparser = "workflowparsers:aflow_parser_entry_point"
asrparser = "workflowparsers:asr_parser_entry_point"
atomateparser = "workflowparsers:atomate_parser_entry_point"
elasticparser = "workflowparsers:elastic_parser_entry_point"
fhivibesparser = "workflowparsers:fhivibes_parser_entry_point"
lobsterparser = "workflowparsers:lobster_parser_entry_point"
phonopyparser = "workflowparsers:phonopy_parser_entry_point"
quantum_espresso_epwparser = "workflowparsers:quantum_espresso_epw_parser_entry_point"
quantum_espresso_phononparser = "workflowparsers:quantum_espresso_phonon_parser_entry_point"
quantum_espresso_xspectraparser = "workflowparsers:quantum_espresso_xspectra_parser_entry_point"
[tool.mypy]
strict = false
ignore_missing_imports = true
follow_imports = "silent"
no_strict_optional = true
disable_error_code = "import, annotation-unchecked"