-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
124 lines (109 loc) · 2.88 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
[build-system]
requires = [
"wheel>=0.37.1",
"setuptools>=64",
"setuptools_scm>=8",
"Cython>=0.29.23",
"numpy>=1.23.4",
]
build-backend = "setuptools.build_meta"
[project]
name = "nzthermo"
dynamic = ["version"]
description = "(N, Z) Thermodynamics"
authors = [{ name = "Jason Leaver", email = "[email protected]" }]
dependencies = ['numpy']
requires-python = ">=3.10"
[tool.setuptools.packages.find]
where = ["src"]
include = ["nzthermo"]
[tool.setuptools.package-data]
nzthermo = ["py.typed", "*.pyi", "*.pyx", "*.pxd"]
[tool.setuptools_scm]
write_to = "src/nzthermo/_version.py"
[tool.pytest]
testpaths = ["tests/"]
[tool.pytest.ini_options]
markers = [
"regression",
"broadcasting",
"self: this is a flag to target a specifc test",
"ccl: test functions for convective condensation level",
"moist_lapse",
"downdraft_cape",
# "lcl: test functions for lifting condensation level",
"lfc: test functions for level of free convection",
"el: test functions for equilibrium level",
"cape: test functions for convective available potential energy",
"cape_cin",
"cape_el",
"cape_el_top",
"cape_el_bottom",
"entrainment",
"cape_lfc",
"most_unstable_cape_cin",
"most_unstable_parcel",
"cape_lfc_top",
"cape_lfc_bottom",
"mu_cape",
"parcel_profile",
"mixed_layer",
"mixed_parcel",
"mixed_layer_cape_cin",
]
pythonpath = ["src"]
[tool.coverage.run]
plugins = ["Cython.Coverage"]
source = ["nzthermo/"]
[tool.coverage.xml]
output = ".reports/coverage.xml"
[tool.coverage.report]
ignore_errors = false
show_missing = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:s
# "def __repr__",
# "if self.debug",
# Don't complain if tests don't hit defensive assertion code:
# "raise AssertionError",
"raise NotImplementedError",
"AbstractMethodError",
# Don't complain if non-runnable code isn't run:
# "if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.black]
target-version = ['py312']
line-length = 99
include = '(nzthermo|tests)\/.*(\.py|\.pyi)'
force-exclude = '(nzthermo|tests)\/.*(\.pyx)'
[tool.mypy]
python_version = "3.12"
warn_unused_configs = true
warn_unused_ignores = true
warn_redundant_casts = true
check_untyped_defs = true
[tool.isort]
profile = "black"
combine_as_imports = true
[tool.ruff]
target-version = "py312"
line-length = 99
fix = true
[tool.ruff.lint]
ignore = [
"E731", # do not assign a lambda expression, use a def
"E402", # module level import not at top of file
"E402", # module level import not at top of file
"E501", # line too long
"E741", # do not use variables named 'l', 'O', or 'I'
]
[tool.pyright]
venvPath = "."
venv = ".venv"
pythonVersion = "3.12"
reportOverlappingOverload = "none"
reportMissingModuleSource = "none"