-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
142 lines (129 loc) · 3.13 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
[project]
authors = [
{name = "Ludwig Neste", email = "[email protected]"},
]
license = {text = "MIT"}
requires-python = ">= 3.8,<3.12"
dependencies = [
"corsikaio<1.0,>=0.3",
"numpy<3.0",
"pandas<3.0",
"click<9.0.0,>=8.1.3",
"particle<1.0.0,>=0.21.0",
"tqdm<5.0.0,>=4.64.1",
"scipy<2.0.0,>=1.10.1",
"ipython>=8.12.3",
"fluxcomp>=0.1.2",
"myst-parser>=2.0.0",
"nbsphinx>=0.9.3",
]
name = "corsika-panama"
description = "\"PANdas And Multicore utils for corsikA7\" -- A python toolkit for CORSIKA7"
readme = "README.md"
dynamic = ["version"]
[project.urls]
homepage = "https://github.com/The-Ludwig/PANAMA"
repository = "https://github.com/The-Ludwig/PANAMA"
documentation = "https://panama.readthedocs.io/en/latest/"
[project.scripts]
panama = "panama.cli:cli"
[project.optional-dependencies]
hdf = [
"tables>=3.8.0",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pytest.ini_options]
minversion = "6.0"
xfail_strict = true
addopts = [
"-ra",
"--strict-config",
"--strict-markers"
]
testpaths = [
"tests",
]
log_cli_level = "DEBUG"
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
[tool.ruff]
target-version = "py311"
src = ["panama"]
[tool.ruff.lint]
select = [
"E", "F", "W", # flake8
"B", # flake8-bugbear
"I", # isort
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
"B905" # strict= parameter of zip. (not in py3.8)
]
[tool.ruff.lint.per-file-ignores]
# Things we don't really want to test in a notebook
# (valid LaTeX code which does not need to be in a raw-string gets flagged)
"*.ipynb" = ["I001", "T201", "W605"]
[tool.mypy]
files = [
"panama/**",
]
python_version = "3.11"
strict = true
warn_return_any = false
warn_unreachable = true
show_error_codes = true
ignore_missing_imports = true
disallow_untyped_decorators = false
enable_error_code = [
"ignore-without-code",
"truthy-bool",
"redundant-expr",
]
exclude = ["tests/"]
[[tool.mypy.overrides]]
module = "tests"
follow_imports = "skip"
strict = false
[tool.pdm]
plugins = [
"sync-pre-commit-lock"
]
version = { source = "file", path = "panama/version.py" }
[tool.pdm.dev-dependencies]
dev = [
"black<23.0.0,>=22.10.0",
"pytest<8.0.0,>=7.2.0",
"coverage<8.0.0,>=7.1.0",
"pre-commit<4.0.0,>=3.0.4",
"sphinx<7.0.0,>=6.1.3",
"sphinx-click<5.0.0,>=4.4.0",
"ruff<1.0.0,>=0.0.252",
"mypy<2.0.0,>=1.0.1",
"types-tqdm<5.0.0.0,>=4.65.0.1",
"codespell<3.0.0,>=2.2.4",
"matplotlib<4.0.0,>=3.7.1",
"toml<1.0.0,>=0.10.2",
"types-toml<1.0.0.0,>=0.10.8.7",
"python-lsp-server>=1.8.2",
"pydata-sphinx-theme>=0.14.4",
"notebook>=7.0.6",
]
[tool.pdm.build]
includes = ["panama"]