-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpyproject.toml
133 lines (123 loc) · 4.31 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
[project]
name = "doped"
version = "3.0.0"
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.10" # dictated by "pymatgen>=2024.9.10" requirement
dependencies = [
"tabulate",
"matplotlib>=3.5.2",
"numpy>=1.21.0",
"pymatgen>=2024.9.10", # needs new SymmetryUndeterminedError class
"pymatgen-analysis-defects>=2023.8.22",
"shakenbreak>=3.3.4", # oxi-state functions renaming
"ase", # required by ShakeNBreak anyway
"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
"cmcrameri>=1.4", # for colour-maps; >=1.4 required for cmcrameri.cm.cmaps definition
"matplotlib-label-lines", # for labelling lines in matplotlib plots
"dscribe", # for defect site guessing using SOAP analysis
]
# Reminder: Update docs pages when any new (sub)modules are added!
[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.3",
"pytest-mpl>=0.16.1",
"mp-api", # not required by default as user can use legacy API, but needed for tests
"py-sc-fermi", # not required, but allows `FermiSolver` with `py-sc-fermi` backend to be tested
]
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" = ["py.typed"]
"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,dscribe,smll" # lowercase!