-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (63 loc) · 1.69 KB
/
pyproject.toml
File metadata and controls
75 lines (63 loc) · 1.69 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
[build-system]
requires = ["setuptools>=45", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
dependencies = [
"ase",
"e3x",
"flax",
"ipi",
"jax",
"jax-pme @ git+https://github.com/lab-cosmo/jax-pme.git",
"jaxtyping",
"marathon-train[grain]",
"opsis",
"optax",
]
dynamic = ["version"]
license = "BSD-3-Clause"
name = "lorem-jax"
requires-python = ">=3.11"
[project.scripts]
lorem-install-ipi-driver = "lorem._install_ipi_driver:install_ipi_driver"
lorem-train = "lorem.train:main"
[tool.pytest.ini_options]
python_files = ["*.py"]
testpaths = ["tests"]
addopts = [
"--cov",
"--cov-append",
"--cov-report=",
"--import-mode=append",
]
filterwarnings = ["error"]
[tool.ruff]
exclude = ["src/lorem/_version.py"]
line-length = 92
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"I", # isort
]
# E501: don't worry about line length (the formatter will take care of it)
# E741: don't worry about short variable names
# E731: don't worry about lambdas
# E402: we're ok with importing in arbitrary places (for inline testing and scripts)
ignore = ["E741", "E731", "E402", "E501"]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs,examples}/*" = ["D1"]
[tool.ruff.lint.isort]
known-first-party = ["lorem"]
section-order = ["numpy", "jax", "future", "standard-library", "third-party", "first-party", "local-folder"]
no-lines-before = ["jax", "numpy"]
[tool.ruff.lint.isort.sections]
"numpy" = ["numpy"]
"jax" = ["jax", "jax.numpy"]
[tool.ruff.format]
docstring-code-format = true
[tool.setuptools_scm]
version_file = "src/lorem/_version.py"
[tool.setuptools.packages.find]
where = ["src"]