-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
127 lines (115 loc) · 3.34 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
[build-system]
requires = ["hatchling>=1.17.1", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "egamma-tnp"
description = "E/Gamma Tag & Probe framework."
readme = "README.md"
license = {text = "BSD-3-Clause"}
requires-python = ">=3.8"
authors = [
{ name = "Iason Krommydas", email = "ik23@rice.edu" },
]
maintainers = [
{ name = "Iason Krommydas", email = "ik23@rice.edu" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: MacOS",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development",
"Topic :: Utilities",
]
dependencies = [
"coffea[dask,rucio]>=2024.5.0",
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/iasonkrom/egamma-tnp"
"Bug Tracker" = "https://github.com/iasonkrom/egamma-tnp/issues"
[project.optional-dependencies]
dev = [
"pre-commit",
"black[jupyter]",
"ruff",
"pytest",
]
[project.scripts]
run_analysis = "scripts.run_analysis:main"
dataset_query = "scripts.dataset_query:main"
merge_parquet = "scripts.merge_parquet:main"
prepare_histograms = "scripts.prepare_histograms:main"
fetch_datasets = "scripts.fetch_datasets:main"
[tool.hatch.build.targets.wheel]
packages = ["src/egamma_tnp", "scripts"]
[tool.hatch.build.targets.sdist]
include = [
"src/egamma_tnp/**",
"scripts/**",
]
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/egamma_tnp/_version.py"
[tool.hatch.metadata]
allow-direct-references = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = [
"-rfesxX",
"-v",
]
log_cli_level = "DEBUG"
filterwarnings = [
"ignore:There is no current event loop",
]
[tool.ruff]
src = ["src"]
extend-include = ["*.ipynb"]
line-length = 160
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"I", # isort
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"RUF", # Ruff-specific
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"TID251", # flake8-tidy-imports
]
ignore = [
"PLR", # Design related pylint codes
"ISC001", # Conflicts with the formatter in 0.1.2
"G004", # Logging f-string
]
unfixable = [
"T20", # Removes print statements
"F841", # Removes unused variables
]
isort.required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.per-file-ignores]
"**.ipynb" = ["B008", "T20", "I002", "E402", "E703", "B018"]
"src/egamma_tnp/nanoaod_efficiency.py" = ["PLW2901"]
"src/egamma_tnp/__init__.py" = ["E402"]
"tests/example_extra_filter.py" = ["T201"]