-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
146 lines (135 loc) · 3.46 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
# pdm
requires = ["wheel" , "pdm-pep517"]
build-backend = "pdm.pep517.api"
# hatch
#requires = ["hatchling"]
#build-backend = "hatchling.build"
[project]
name = "bayesian_inference"
description = "Analysis pipeline to implement Bayesian inference in high-energy physics "
license = {text = "BSD-3-Clause"}
# NOTE: <3.12 cap needed for tensorflow-io-gcs-filesystem
requires-python = ">=3.8,<3.12"
authors = [
{ name = "James Mulligan", email = "[email protected]" },
{ name = "Raymond Ehlers", email = "[email protected]" },
]
# For hatch, need to remove the dependencies references here
dynamic = ["dependencies", "optional-dependencies", "version"]
dependencies = [
# Data analysis and plotting
"matplotlib >=3.5.2",
"numpy >=1.22.4",
"pandas >=1.4.2",
"pyyaml >=6.0",
"seaborn >=0.11.2",
"silx >=1.0.0",
# Emulator training
"gpflow >=2.5.2",
"pymc >=4.0.0",
"scikit-learn >=1.1.1",
"emcee>=3.1.4",
"rich>=13.4.2",
"attrs>=23.1.0",
"statsmodels>=0.14.0",
]
# NOTE: If moving to hatch, move this to "[project.optional-dependencies]"
[tool.pdm.dev-dependencies]
dev = [
"ruff>=0.0.209",
"black >=22.1.0",
"mypy >=0.931",
"ipython >=8.0",
"ipykernel >=6.15.1",
"pytest>=7.4.0",
]
[tool.hatch]
version.path = "src/bayesian_inference/__init__.py"
[tool.pdm]
version = { source = "file", path = "src/bayesian_inference/__init__.py" }
[tool.black]
line-length = 120
[tool.ruff]
exclude = [
'.git',
'.env',
'.env3',
'.venv',
'.venv*',
'env',
'__pycache__',
'bak',
'build',
'dist',
]
line-length = 120
select = [
"E", "F", "W", # flake8
"C901", # mccabe
"B", "B904", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"EXE", # flake8-executable
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"NPY", # NumPy specific rules
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"TID251", # flake8-tidy-imports
"UP", # pyupgrade
"YTT", # flake8-2020
]
extend-ignore = [
"E501",
"E722",
"RUF001", # Unicode chars
"PLR",
"ISC003", # Force string to be implicitly concatenated. However, I find this structure to be useful for better
# readability due to consistent spacing with plotting labels.
]
unfixable = [
"T20", # flake8-print
"F841", # Removes unused variables
]
[tool.ruff.mccabe]
max-complexity = 12
[tool.ruff.isort]
known-first-party = []
[tool.pylint]
master.py-version = "3.9"
master.ignore-paths= []
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
messages_control.disable = [
"design",
"fixme",
"line-too-long",
"wrong-import-position",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
log_cli_level = "INFO"
testpaths = [
"tests",
]
[tool.check-manifest]
ignore = [
".github/**",
"docs/**",
".pre-commit-config.yaml",
".readthedocs.yml",
"noxfile.py",
]