-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathpyproject.toml
More file actions
141 lines (127 loc) · 3.4 KB
/
pyproject.toml
File metadata and controls
141 lines (127 loc) · 3.4 KB
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
134
135
136
137
138
139
140
141
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "vasp-ase"
version = "2.0.0"
description = "Modern ASE calculator interface for VASP with workflow integration"
readme = "README.md"
license = "MIT"
requires-python = ">=3.9"
authors = [
{ name = "John Kitchin", email = "jkitchin@andrew.cmu.edu" }
]
keywords = [
"vasp", "ase", "dft", "computational-chemistry", "materials-science",
"workflow", "automation", "phonons", "machine-learning"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"numpy>=1.22",
"ase>=3.22",
"scipy>=1.8",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"mypy>=1.0",
"ruff>=0.1",
"build>=1.0",
"twine>=4.0",
]
slurm = [] # No extra deps needed
kubernetes = [
"kubernetes>=28.0",
]
phonons = [
"phonopy>=2.20",
]
workflows = [
# Workflow engines (user chooses one)
# "prefect>=2.0",
# "dask>=2023.0",
# "parsl>=2023.0",
# "covalent>=0.220",
]
plotting = [
"matplotlib>=3.5",
]
docs = [
"jupyter-book>=1.0.0",
"sphinx>=7.0.0",
"sphinx-autodoc-typehints>=2.0.0",
"myst-nb>=1.0.0",
"sphinxcontrib-bibtex>=2.6.0",
"sphinx-design>=0.5.0",
]
all = [
"vasp-ase[dev,kubernetes,phonons,plotting,docs]",
]
[project.urls]
Homepage = "https://github.com/jkitchin/vasp"
Documentation = "https://github.com/jkitchin/vasp#readme"
Repository = "https://github.com/jkitchin/vasp.git"
Issues = "https://github.com/jkitchin/vasp/issues"
[project.scripts]
vasp-claude = "vasp.cli:main"
vasp-status = "vasp.cli:status_command"
vaspsum = "vasp.cli:vaspsum"
vasp-debug = "vasp.cli:vasp_debug"
[tool.hatch.build.targets.wheel]
packages = ["vasp"]
[tool.pytest.ini_options]
testpaths = ["vasp/tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.mypy]
python_version = "3.9"
warn_return_any = false
warn_unused_configs = true
ignore_missing_imports = true
# Mixin pattern uses dynamic attribute access
disable_error_code = ["attr-defined", "union-attr"]
[[tool.mypy.overrides]]
module = "vasp.mixins.*"
disable_error_code = ["attr-defined", "union-attr", "arg-type", "return-value", "assignment", "var-annotated", "index", "operator"]
[[tool.mypy.overrides]]
module = "vasp.recipes.*"
disable_error_code = ["attr-defined", "union-attr", "arg-type", "return-value", "call-arg", "assignment", "operator", "index"]
[tool.ruff]
target-version = "py39"
line-length = 100
extend-exclude = ["*.ipynb"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
]
[tool.ruff.lint.isort]
known-first-party = ["vasp"]
[tool.coverage.run]
source = ["vasp"]
omit = ["vasp/tests/*"]