-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
132 lines (123 loc) · 2.7 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
130
131
132
[project]
name = "gdf"
version = "0.0.0"
description = "Gaussian density fitting for periodic solids"
keywords = [
"quantum", "chemistry",
"electronic", "structure",
"gaussian", "density", "fitting",
]
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
]
dependencies = [
"numpy>=1.19.0",
"scipy<=1.10.0",
"pyscf>=2.0.0",
"h5py>=3.0.0",
]
[build-system]
requires = [
"setuptools>=61.0.0",
"cmake>=3.5",
"ninja",
]
build-backend = "setuptools.build_meta"
[project.optional-dependencies]
dev = [
"black>=22.6.0",
"isort>=5.10.1",
"flake8>=3.8.4",
"flake8-pyproject>=1.2.3",
"flake8-bugbear>=23.0.0",
"flake8-docstrings>=1.6.0",
"coverage[toml]>=5.5.0",
"pytest>=6.2.4",
"pytest-cov>=4.0.0",
]
[tool.black]
line-length = 100
target-version = [
"py37",
"py38",
]
include = "gdf"
exclude = """
/(
| gdf/__pycache__
| gdf/lib
| .git
)/
"""
[tool.isort]
atomic = true
profile = "black"
line_length = 100
src_paths = [
"gdf",
]
skip_glob = [
"gdf/__pycache__/*",
"gdf/__init__.py",
]
[tool.flake8]
max-line-length = 100
max-doc-length = 75
ignore = [
"E203", # Whitespace before ':'
"E731", # Do not assign a lambda expression, use a def
"E741", # Ambiguous variable name
"W503", # Line break before binary operator
"D202", # No blank lines allowed after function docstring
"D205", # 1 blank line required between summary line and description
"D400", # First line should end with a period
"B007", # Loop control variable not used within the loop body
]
per-file-ignores = [
"__init__.py:E402,W605,F401,F811,D103",
]
docstring-convention = "numpy"
ignore-decorators = "has_docstring"
count = true
include = "gdf"
exclude = """
/(
| gdf/__pycache__
| .git
)/
"""
[tool.coverage.run]
branch = true
source = [
"gdf",
]
omit = [
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise NotImplementedError",
"raise util.ModelNotImplemented",
"if __name__ == .__main__.:",
]
[tool.coverage.html]
directory = "cov_html"
[tool.pytest.ini_options]
testpaths = [
"tests",
]