-
Notifications
You must be signed in to change notification settings - Fork 33
/
pyproject.toml
130 lines (120 loc) · 4.21 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
[project]
name = "doped"
version = "2.4.7"
description = "Python package to setup, process and analyse solid-state defect calculations with VASP"
authors = [{name = "Seán Kavanagh", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9"
dependencies = [
"tabulate",
"matplotlib>=3.5.2",
"numpy>=1.21.0",
"pymatgen>=2023.11.12", # limiting factor: POTCAR_STATS_PATH available from pymatgen.io.vasp.inputs
"spglib>=2.4.0", # previously explicitly set to <=2.0.2 to avoid unnecessary warnings
# (https://github.com/spglib/spglib/issues/338) but causing dependency issues
# (https://github.com/SMTG-Bham/doped/issues/73), being worked on in
# https://github.com/spglib/spglib/issues/462 -- update Troubleshooting.rst and spglib warning in
# doped.utils.symmetry when finally resolved
"pymatgen-analysis-defects>=2023.8.22",
"shakenbreak>=3.3.4", # oxi-state functions renaming
"pandas",
"pydefect>=0.8.1", # for Kumagai (eFNV) correction & PHS analysis
"filelock",
"vise>=0.9.0", # for eigenvalue analysis, >=0.9.0 required for SOC compatibility
"easyunfold>=0.3.6", # for efficient PROCAR parsing (and supporting SOC),
# if any dependency issues arise can make easyunfold an optional dependency
]
[project.urls]
Homepage = "https://doped.readthedocs.io/en/latest/"
Documentation = "https://doped.readthedocs.io/en/latest/"
Package = "https://pypi.org/project/doped/"
Repository = "https://github.com/SMTG-Bham/doped"
[project.optional-dependencies]
tests = [
"pytest<8.2", # with pytest==8.2.0, seemed to cause memory issue on GH Actions mpl tests, python=3.10
"pytest-mpl>=0.16.1"
]
docs = ["sphinx", "sphinx-book-theme", "sphinx_design"]
analysis = [
"easyunfold",
"py-sc-fermi",
"sumo",
"nonrad",
#"CarrierCapture.jl"
]
pdf = ["pycairo"]
[tool.setuptools.packages.find]
exclude = ["examples*", "*testing", "tests*", "docs*"]
[tool.setuptools.package-data]
"doped.VASP_sets" = ["*.yaml"]
"doped.utils" = ["*.dat", "*.mplstyle"]
[tool.black]
line-length = 107
[tool.ruff]
line-length = 107
lint.pydocstyle.convention = "google"
lint.isort.split-on-trailing-comma = false
lint.select = [ # from pymatgen
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle error
"EXE", # flake8-executable
"F", # pyflakes
"FLY", # flynt
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PD", # pandas-vet
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PYI", # flakes8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # tidy imports
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
lint.ignore = [
"B028", # No explicit stacklevel keyword argument found
"D101", # Missing docstring in public class (docstring in init instead)
"D200", # One-line docstring should fit on one line with quotes
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"PLR2004", # Magic number
"PLR", # pylint refactor
"W605", # Invalid escape sequence
"PT011", # too broad pytest.raises()
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D102"]
[[tool.mypy.overrides]]
module = ["tabulate.*"]
ignore_missing_imports = true
[tool.docformatter]
recursive = true
pre-summary-newline = true
make-summary-multi-line = true
wrap-summaries = 79
wrap-descriptions = 79
[tool.codespell]
ignore-words-list = "titel,te,bu,aack,unx,nd,efect,vise,mater,sise" # lowercase!