-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
72 lines (58 loc) · 1.38 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
[project]
name = "ibc_lightning"
version = "0.1.0"
description = "pytorch-lightning implementation of IBC"
authors = [
{ name = "nomutin", email = "[email protected]" }
]
dependencies = [
"lightning>=2.2.5",
"einops>=0.8.0",
]
readme = "README.md"
requires-python = ">= 3.8"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.4.7",
"mypy>=1.10.0",
"pytest-cov>=5.0.0",
]
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/ibc_lightning"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
[tool.rye.scripts]
cov = "pytest -ra --cov=src --cov-report=term --cov-report=xml"
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = ["CPY001"]
fixable = ["ALL"]
unfixable = []
exclude = [".git", ".ruff_cache", ".venv",]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"src/ibc_lightning/core.py" = ["PLR0913"]
"tests/conftest.py" = ["PLR6301"]
"tests/test__core.py" = ["S101"]
[tool.ruff.format]
preview = true
[tool.ruff.lint.isort]
known-first-party = ["ibc_lightning"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"