-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (61 loc) · 1.45 KB
/
pyproject.toml
File metadata and controls
68 lines (61 loc) · 1.45 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
[project]
name = "mach3sbitools"
version = "2.1.1"
description = "Specific SBI package for handling MaCh3 Chains"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"torch",
"sbi",
"uproot",
"matplotlib",
"ipython",
"ipykernel",
"ipywidgets",
"click",
"pyarrow",
"scipy-stubs~=1.17.1",
"arviz",
"rich"
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
"mypy",
"sphinx"
]
docs = [
"sphinx",
"sphinx-click==4.4.0", # OLD VERSION NEEDED
"sphinx-autodoc-typehints>=2.3.0",
"sphinxcontrib-bibtex",
"furo"
]
[project.scripts]
mach3sbi = "mach3sbitools.apps.main_cli:cli"
[tool.pytest.ini_options]
addopts = "-v --tb=short --cov=mach3sbitools tests/ --cov-report=term-missing"
[tool.coverage.run]
source = ["mach3sbitools"]
omit = ["tests/*", "scripts/*"]
# * See https://docs.astral.sh/ruff/rules/ for details on Ruff's linting options
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # check for errors using PyFlakes
"I", # best practices for import calls
"UP", # suggestions for code modernization
"RUF", # build in Ruff warnings
"R", # refactoring suggestions
]
ignore = [
"E501", # Don't enforce line lengths within a linting context
]
allowed-confusables = ["σ"] # We need sigmas
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true