-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
170 lines (157 loc) · 4.02 KB
/
pyproject.toml
File metadata and controls
170 lines (157 loc) · 4.02 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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[build-system]
# pdm
requires = ["wheel" , "pdm-pep517"]
build-backend = "pdm.pep517.api"
# hatch
#requires = ["hatchling"]
#build-backend = "hatchling.build"
[project]
name = "jetscape-bayesian"
description = "Analysis pipeline to implement Bayesian inference in high-energy physics "
license = {text = "BSD-3-Clause"}
# NOTE: <3.13 cap needed for tensorflow-io-gcs-filesystem
requires-python = ">=3.10,<3.13"
authors = [
{ name = "Raymond Ehlers", email = "raymond.ehlers@cern.ch" },
{ name = "Luna (Yi) Chen", email = "chen.yi.first@gmail.com" },
{ name = "Christal Martin", email = "cbaillar@vols.utk.edu" },
{ name = "Cameron Parker", email = "cameron.parker@tamu.edu" },
]
# 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",
]
[project.optional-dependencies]
dev = [
"ruff >=0.0.209",
"black >=22.1.0",
"mypy>=1.13.0",
"ipython >=8.0",
"ipykernel >=6.15.1",
"pytest >=7.4.0",
"pocoMC >=1.2.2",
]
[tool.hatch]
version.path = "src/bayesian/__init__.py"
[tool.pdm]
version = { source = "file", path = "src/bayesian/__init__.py" }
[tool.black]
line-length = 120
[tool.mypy]
files = ["src", "tests"]
python_version = "3.10"
warn_unused_configs = true
strict = true
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
no_implicit_reexport = false
disallow_untyped_defs = false
disallow_incomplete_defs = false
exclude = [".venv*"]
[[tool.mypy.overrides]]
module = [
"sklearn",
"sklearn.decompoistion",
"sklearn.gaussian_process",
"sklearn.preprocessing",
]
ignore_missing_imports = true
[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",
]