-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
68 lines (63 loc) · 1.67 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "climkern"
authors = [
{name = "Ty Janoski", email="tyfolino@gmail.com"},
]
requires-python = ">= 3.9"
version = "1.1.2"
dependencies = [
"xarray>=0.16.2",
"cf-xarray>=0.5.1",
"cftime",
"xesmf>=0.7.1",
"importlib_resources",
"pooch",
"tqdm",
"plac",
"netCDF4",
]
readme="README.md"
[project.optional-dependencies]
test = [
"pytest>=7,<8",
]
lint = [
"precommit>=2.20.0"
]
# tools
[tool.black]
line-length = 88
target-version = ["py39","py310", "py311", "py312"]
# https://github.com/charliermarsh/ruff
[tool.ruff]
line-length = 88
target-version = "py311"
extend-select = [
"E", # style errors
"F", # flakes
"D", # pydocstyle
"I001", # isort
"UP", # pyupgrade
"N", # pep8-naming
"C", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"RUF", # ruff-specific rules
"RUF100", # Unused noqa directive
]
extend-ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D413", # Missing blank line after last section
"D416", # Section name should end with a colon
"N806", # Variable in function should be lowercase
]