forked from materialsproject/pymatgen-analysis-defects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
133 lines (110 loc) · 3.2 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
133
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools >= 42", "versioningit ~= 1.0", "wheel"]
[project]
authors = [{ name = "Jimmy-Xuan Shen", email = "jmmshn@gmail.com" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Topic :: Other/Nonlisted Topic",
"Topic :: Scientific/Engineering",
]
dependencies = [
"pymatgen>=2024.5.1",
"scikit-image>=0.19.3",
"numpy<2",
"mp-pyrho>=0.4.4",
]
description = "Pymatgen extension for defects analysis"
dynamic = ["version"]
keywords = ["high-throughput", "automated", "dft", "defects"]
license = { text = "modified BSD" }
name = "pymatgen-analysis-defects"
readme = "README.md"
requires-python = '>=3.9'
[project.optional-dependencies]
finder = ["dscribe>=2.0.0"]
dev = ["pre-commit>=2.12.1"]
docs = [
"jupyter-book>=0.13.1",
]
optional = ["pydefect", "dscribe>=2.0.0", "numba"]
strict = [
"pymatgen==2024.5.1",
"dscribe==2.1.1",
"mp-pyrho==0.4.4",
"pydefect==0.9.4",
]
tests = ["pytest==8.2.1", "pytest-cov==5.0.0", "nbmake==1.5.3"]
[tool.setuptools.dynamic]
readme = { file = ["README.md"] }
[project.urls]
documentation = "https://materialsproject.github.io/pymatgen-analysis-defects/"
homepage = "https://materialsproject.github.io/pymatgen-analysis-defects/"
repository = "https://github.com/materialsproject/pymatgen-analysis-defects"
[tool.setuptools.packages.find]
exclude = ["tests"]
where = ["./"]
[tool.versioningit.vcs]
default-tag = "0.0.1"
method = "git"
[tool.mypy]
ignore_missing_imports = true
no_strict_optional = true
[tool.coverage.run]
branch = true
include = ["pymatgen/*"]
parallel = true
[tool.coverage.paths]
source = ["pymatgen/"]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.autoflake]
in-place = true
remove-unused-variables = true
remove-all-unused-imports = true
expand-star-imports = true
ignore-init-module-imports = true
[tool.ruff]
src = ["pymatgen", "tests"]
line-length = 88
indent-width = 4
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"E203", "E501", "N", "PLR", "SLF", "ANN101", "ANN102",
"TRY", "COM812", "ISC001", "ERA001", "FBT", "C", "FIX", "TD", "ANN003"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, 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.ruff.lint.pydocstyle]
convention = "google"