-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (110 loc) · 3.05 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (110 loc) · 3.05 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
[build-system]
requires = ['setuptools >= 61.0.0']
build-backend = 'setuptools.build_meta'
[project]
name = 'ase'
description='Atomic Simulation Environment'
dynamic = ['version']
readme = 'README.rst'
license-files = ['LICENSE']
maintainers = [{ name = 'ASE Community', email = 'ase-users@listserv.fysik.dtu.dk' }]
classifiers = [
'Development Status :: 6 - Mature',
'Intended Audience :: Science/Research',
'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',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Physics'
]
requires-python = '>=3.9'
dependencies = [
'numpy>=1.19.5', # January 2021
'scipy>=1.6.0', # December 2020
'matplotlib>=3.3.4' # January 2021 (3.3.0 is July 2020)
]
[project.urls]
Homepage = 'https://wiki.fysik.dtu.dk/ase/'
Repository = 'https://gitlab.com/ase/ase.git'
Issues = 'https://gitlab.com/ase/ase/issues/'
[project.scripts]
ase = 'ase.cli.main:main'
[project.optional-dependencies]
docs = ['sphinx', 'sphinx_rtd_theme', 'pillow']
test = ['pytest>=7.0.0', 'pytest-xdist>=2.1.0']
spglib = ['spglib>=1.9']
lint = ['mypy', 'ruff', 'coverage', 'types-docutils', 'types-PyMySQL', 'flake8']
[tool.setuptools.package-data]
ase = [
'spacegroup/spacegroup.dat',
'collections/*.json',
'db/templates/*',
'db/static/*',
'py.typed',
'test/pytest.ini',
'test/testdata/**',
]
[tool.setuptools.dynamic]
version = {attr = 'ase.__version__'}
[tool.pytest.ini_options]
testpaths = ['ase/test']
markers = [
'calculator: parametrizes calculator tests with calculator factories',
'calculator_lite: for calculator tests; include in calculators-lite job',
'optimize: tests of optimizers',
'slow: test takes longer than a few seconds',
]
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = false
enable_error_code = 'ignore-without-code'
[tool.coverage.run]
source = ['ase']
[tool.coverage.report]
exclude_also = [
'if TYPE_CHECKING:',
'if __name__ == .__main__.:'
]
[tool.ruff]
line-length = 80
exclude = ['./build/', './dist', './doc/build']
src = ['ase', 'doc']
[tool.ruff.format]
quote-style = 'single'
skip-magic-trailing-comma = false
[tool.ruff.lint]
preview = true # necessary to activate many pycodestyle rules
select = [
'F', # Pyflakes
'E', # pycodestyle
'W', # pycodestyle
'I' # isort
]
ignore = [
'E741', # ambiguous-variable-name
'W505', # doc-line-too-long
]
[tool.ruff.lint.pycodestyle]
max-line-length = 80
max-doc-length = 80
[tool.ruff.lint.pydocstyle]
convention = 'numpy'
[tool.ruff.lint.isort]
known-first-party = ['ase']
[tool.scriv]
output_file = 'doc/changelog.rst'
insert_marker = 'scriv-auto-changelog-start'
end_marker = 'scriv-auto-changelog-end'
categories = [
'I/O',
'Calculators',
'Optimizers',
'Molecular dynamics',
'GUI',
'Development',
'Other changes',
'Bugfixes'
]