-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
90 lines (73 loc) · 2 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
[project]
name = "pm_icecon"
version = "0.6.0"
description = "Sea ice concentration estimates from passive microwave data"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["pm_icecon*"] # package names should match these glob patterns (["*"] by default)
[tool.setuptools.package-data]
pm_icecon = ["py.typed"]
[tool.black]
target-version = ["py310"]
[tool.vulture]
paths = ["pm_icecon"]
min_confidence = 65
[tool.ruff]
target-version = "py310"
lint.extend-fixable = ["I"]
lint.extend-select = ["I"]
lint.ignore = [
# D1: Ignore errors requiring docstrings on everything.
# D203: "1 blank line required before class docstring"
# D213: "Multi-line docstring summary should start at the second line"
# E731: Lambda assignments are OK, use your best judgement.
# RUF010: !a, !r, !s are too magical for me.
"D1", "D203", "D213", "E731", "RUF010", "F403",
]
[tool.ruff.isort]
known-first-party = ["pm_icecon"]
[tool.ruff.mccabe]
max-complexity = 8
[tool.ruff.flake8-quotes]
inline-quotes = "double"
[tool.bumpversion]
current_version = "0.6.0"
commit = false
tag = false
[[tool.bumpversion.files]]
filename = "./recipe/meta.yaml"
search = 'version: "{current_version}"'
replace = 'version: "{new_version}"'
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[tool.mypy]
python_version = "3.10"
packages = ["pm_icecon"]
incremental = true
strict = false
show_error_codes = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
check_untyped_defs = true
warn_unused_ignores = true
plugins = ["numpy.typing.mypy_plugin", ]
[[tool.mypy.overrides]]
module = [
"invoke.*",
"matplotlib.*",
"cartopy.*",
"scipy.*",
"sklearn.*",
"h5py.*",
"pandas.*",
"pyresample.*",
"setuptools.*",
"netCDF4.*",
"rasterio.*",
"ruamel.*",
]
ignore_missing_imports = true