-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
56 lines (47 loc) · 1.25 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
[tool.poetry]
name = "spex"
version = "0.1.0"
description = "a clean-slate rewrite of torch-spex"
authors = ["Marcel Langer <dev@marcel.science>"]
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.7"
numpy = "*"
PyYAML = "*"
scipy = "*"
physical_basis = {version = "==1.0.0", optional = true}
pytest = {version = "*", optional = true}
ruff = {version = "*", optional = true}
ase = {version = "*", optional = true}
vesin = {version = "*", optional = true}
[tool.poetry.extras]
dev = ["pytest", "ruff", "ase", "physical_basis", "vesin"]
physical = ["physical_basis"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 92
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# isort
"I",
]
# E741: don't worry about short variable names
# E731: don't worry about lambdas
ignore = ["E741", "E731"]
[tool.ruff.lint.isort]
section-order = ["numpy", "torch", "future", "standard-library", "third-party", "first-party", "local-folder"]
no-lines-before = ["torch"]
[tool.ruff.lint.isort.sections]
"numpy" = ["numpy"]
"torch" = ["torch"]
[tool.ruff.lint.extend-per-file-ignores]
# E402: don't worry about the order of imports
"__init__.py" = ["E402"]