-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
123 lines (115 loc) · 2.77 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
[tool.poetry]
name = "seastats"
version = "0.1.0"
description = "package for metocean statistics"
authors = [
"tomsail <[email protected]>",
"pmav99 <[email protected]>",
]
license = 'EUPL-1.2'
readme = "README.md"
repository = "https://github.com/oceanmodeling/seastats.git"
classifiers = [
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Physics",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
[tool.poetry.dependencies]
python = "^3.10"
numpy = "*"
pandas = {version = "*", extras = ["pyarrow", "performance"]}
pyextremes = "*"
[tool.poetry.group.dev.dependencies]
covdefaults = "*"
hvplot = "*"
ipykernel = "*"
mypy = "*"
pytest = "*"
pytest-cov = "*"
pandas-stubs = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
python_version = "3.10"
plugins = [
"numpy.typing.mypy_plugin"
]
# ignore_missing_imports = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
strict = true
disable_error_code = [ ]
enable_error_code = [
"comparison-overlap",
"explicit-override",
"ignore-without-code",
"no-any-return",
"no-any-unimported",
"no-untyped-call",
"no-untyped-def",
"possibly-undefined",
"redundant-cast",
"redundant-expr",
"redundant-self",
"truthy-bool",
"truthy-iterable",
"type-arg",
"unimported-reveal",
"unreachable",
"unused-ignore",
]
# mypy per-module options:
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = true
[tool.ruff]
target-version = "py310"
line-length = 108
lint.select = [
"E", # pycodestyle
"F", # pyflakes
"C90", # mccabe
"A", # flake8-builtins
"COM", # flake8-commas
# "UP", # pyupgrade
# "YTT", # flake-2020
# "S", # floke8-bandit
# "BLE", # flake8-blind-except
# "B", # flake8-bugbear
# "T20", # flake8-print
# "PD", # pandas-vet
# "NPY", # numpy-specific rules
# "RUF", # ruff-specific rules
# "D", # pydocstyle
# "I", # isort
# "N", # pep8-naming
]
lint.ignore = [
"E501", # line-too-long
"D103", # undocumented-public-function
"PD901", # pandas-df-variable-name
]
[tool.coverage.run]
plugins = ["covdefaults"]
source = ["seastats"]
omit = []
parallel = true
sigterm = true
[tool.coverage.report]
fail_under = 86.8