-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
145 lines (135 loc) · 2.66 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[tool.poetry]
name = "prepobs-bgc"
version = "0.1.0"
description = "Set of scripts to prepare csv files with BGC variables for EnKF prepobs"
authors = ["Gaétan Rigaut <[email protected]>"]
readme = "README.md"
packages = [
{ include = "bgc_data_processing", from = "src" },
{ include = "abfile", from = "src" },
]
[tool.poetry.dependencies]
python = ">=3.11,<3.12"
pandas = "^1.5.2"
numpy = "<1.24"
cartopy = "0.21.1"
netcdf4 = "^1.6.2"
pyproj = "~3.4"
shapely = "^2.0.1"
geopandas = "^0.12.2"
eomaps = "^6.3"
seawater = "^3.3.4"
scipy = "^1.10.1"
scikit-learn = "^1.2.2"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.2"
mkdocs-gen-files = "^0.4.0"
mkdocs-literate-nav = "^0.6.0"
mkdocs-autorefs = "^0.4.1"
mkdocs-material = "^9.0.6"
mkdocstrings = { extras = ["python"], version = "^0.20.0" }
mkdocs-macros-plugin = "^0.7.0"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
pre-commit = "^3.1.1"
ruff = "^0.0.274"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
force-exclude = "src/abfile"
[tool.ruff]
line-length = 88
target-version = "py311"
exclude = ["src/abfile/*"]
select = [
# pyflakes
'F',
# pycodestyle Errors (E) and Warnings (W)
'E',
'W',
# isort
"I",
# pep8-naming
'N',
# pydocstyle
'D',
# pyupgrade
"UP",
# flake8-builtins
"A",
# flake8-unused-arguments
"ARG",
# flake8-use-pathlib
"PTH",
# eradicate
"ERA",
# flake8-bugbear
'B',
# flake8-commas
'COM',
# flake8-comprehensions
'C4',
# flake8-quotes
'Q',
# flake8-errmsg
'EM',
# flake8-implicit-str-concat
"ISC",
# flake8-import-conventions
"ICN",
# flake8-pie
"PIE",
# flake8-quotes
"Q",
# flake8-raise
"RSE",
# flake8-return
"RET",
# flake8-self
"SLF",
# flake8-simplify
"SIM",
# flake8-tidy-imports
"TID",
# flake8-type-checking
"TCH",
# pylint
"PLC",
"PLE",
"PLR",
"PLW",
# tryceratops
"TRY",
# flynt
"FLY",
# Perflint
"PERF",
# Ruff-specific rules
'RUF',
]
ignore = [
# do not assign a lambda expression, use a def
"E731",
# Function definition does not bind loop variable
"B023",
# Too many arguments to function call
"PLR0913",
# Magic number
"PLR2004",
]
unfixable = [
# Remove unused-imports
"F401",
# Variable assigned but never used
"F841",
# Use {key} in {dict} instead of {key} in {dict}.keys()
"SIM118",
# move to type-checking block
"TCH003",
]
[tool.isort]
profile = 'black'
[tool.ruff.pydocstyle]
convention = "numpy"