-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
94 lines (82 loc) · 1.88 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[build-system]
requires = ["hatchling>=1.8.0", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "netket_fidelity"
description="Infidelity operator for NetKet."
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"netket~=3.10",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pytest>=6",
"pytest-cov>=2.10.1",
"pytest-json-report>=1.3",
"coverage>=5",
"pre-commit>=2.7",
"black==23.10.1",
"ruff==0.1.4",
"wheel",
"build",
"qutip",
]
[tool.hatch.build]
include = ["netket_fidelity*"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "netket_fidelity/_version.py"
# Development tools
[tool.black]
line-length = 88
target-version = ['py39', 'py310']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.coverage.run]
branch = true
parallel = true
concurrency = ["multiprocessing"]
command_line = "-m pytest --verbose test"
source = ["netket_fidelity"]
[tool.pytest.ini_options]
addopts = "--color=yes --verbose --durations=100 --tb=short"
doctest_optionflags = "NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL NUMBER"
filterwarnings = [
"ignore::UserWarning",
"ignore:No GPU/TPU found, falling back to CPU.:UserWarning",
"ignore:the imp module is deprecated in favour of importlib.*:DeprecationWarning",
"ignore:`np.long`",
"ignore:`np.int` is a deprecated alias for the builtin `int`",
"ignore::DeprecationWarning:tensorboardX",
]
testpaths = [
"test",
]
[tool.ruff]
target-version = "py39"
select = ["E", "F", "W"]
fixable = ["E", "F", "W"]
ignore = ["E501", "E731", "E741"]
#ignore = ["E266"]
line-length = 88
exclude = ["Examples/Legacy"]
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402","F401"]
"netket/nn/activation.py" = ["F401"]
"Examples/" = ["F401"]