-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpyproject.toml
88 lines (75 loc) · 1.52 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
[build-system]
requires = [
"setuptools>=42",
"setuptools_scm>=7.0",
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
fallback_version = "999"
version_scheme = "no-guess-dev"
[tool.ruff]
# also check notebooks
extend-include = ["*.ipynb"]
target-version = "py310"
[tool.ruff.lint]
# E402: module level import not at top of file
# E501: line too long - let the formatter worry about this
# E731: do not assign a lambda expression, use a def
ignore = [
"E402",
"E501",
"E731",
]
select = [
"F", # pyflakes
"E", # pycodestyle - errors
"W", # pycodestyle - warnings
"I", # isort
"TID", # flake8-tidy-imports (absolute imports)
"UP", # pyupgrade
]
extend-safe-fixes = [
"TID252", # absolute imports
]
[tool.ruff.lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"
[tool.ruff.lint.isort]
known-first-party = ["mesmer"]
[tool.mypy]
exclude = [
'build',
"ci",
"devel",
"dist",
"examples",
]
files = "mesmer"
show_error_context = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"cftime.*",
"joblib.*",
"pooch.*",
"properscoring.*",
"scipy.*",
"setuptools.*",
"shapely.*",
"sklearn.*",
"statsmodels.*",
]
[tool.typos]
[tool.typos.default]
[tool.typos.default.extend-words]
# abbreviations
varn = "varn"
strat = "strat"
[tool.typos.type.jupyter]
# avoid fixing the id hashes in jupyter notebooks
extend-ignore-re = [
"\"id\": \".*\"",
]