-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
191 lines (181 loc) · 4.17 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "meteofrance-publicapi"
description = "A wrapper of the portail-api.meteofrance.fr datasets"
authors = [
{ name="Antoine Tavant"},
]
readme = "README.md"
license = {file = 'LICENSE'}
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Development Status :: 2 - Pre-Alpha",
"Topic :: Scientific/Engineering :: Atmospheric Science",
]
dependencies = [
"pandas",
"numpy",
"scipy",
"deprecation",
"requests",
"xmltodict",
"rasterio",
"cartopy",
"matplotlib",
]
dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/antoinetavant/meteofranceapi"
"Bug Tracker" = "https://github.com/antoinetavant/meteofranceapi/issues"
[project.optional-dependencies]
doc = [
"sphinx",
"pydata-sphinx-theme",
"sphinx_design",
"nbsphinx",
]
test = [
"pytest",
"pytest-cov",
"python-dotenv",
]
all = [
"meteofrance_publicapi[test,doc]"
]
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
where = ["./"]
include = ["meteofrance_publicapi*"]
[tool.setuptools.dynamic]
version = {attr = "meteofrance_publicapi.__version__"}
[tool.ruff]
line-length = 88
target-version = "py310"
fix = true
[tool.ruff.lint]
unfixable = []
typing-modules = ["pandas._typing"]
select = [
# pyflakes
"F",
# pycodestyle
"E", "W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-gettext
"INT",
# pylint
"PL",
# flake8-pytest-style
"PT",
# misc lints
"PIE",
# flake8-pyi
"PYI",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
# comprehensions
"C4",
# pygrep-hooks
"PGH",
# Ruff-specific rules
"RUF",
# flake8-bandit: exec-builtin
"S102",
# numpy-legacy-random
"NPY002",
# Perflint
"PERF",
# flynt
"FLY",
# flake8-logging-format
"G",
# flake8-future-annotations
"FA",
]
ignore = [
### Intentionally disabled
# module level import not at top of file
"E402",
# do not assign a lambda expression, use a def
"E731",
# controversial
"B007",
# controversial
"B008",
# setattr is used to side-step mypy
"B009",
# getattr is used to side-step mypy
"B010",
# tests use comparisons but not their returned value
"B015",
# Function definition does not bind loop variable
"B023",
# Only works with python >=3.10
"B905",
# Too many arguments to function call
"PLR0913",
# Too many returns
"PLR0911",
# Too many branches
"PLR0912",
# Too many statements
"PLR0915",
# Redefined loop name
"PLW2901",
# Global statements are discouraged
"PLW0603",
# Use `typing.NamedTuple` instead of `collections.namedtuple`
"PYI024",
# Use of possibly insecure function; consider using ast.literal_eval
"S307",
# while int | float can be shortened to float, the former is more explicit
"PYI041",
# incorrect-dict-iterator, flags valid Series.items usage
"PERF102",
# try-except-in-loop, becomes useless in Python 3.11
"PERF203",
# pytest-missing-fixture-name-underscore
"PT004",
# pytest-incorrect-fixture-name-underscore
"PT005",
# pytest-parametrize-names-wrong-type
"PT006",
# pytest-parametrize-values-wrong-type
"PT007",
# pytest-patch-with-lambda
"PT008",
# pytest-raises-with-multiple-statements
"PT012",
# pytest-assert-in-except
"PT017",
# pytest-composite-assertion
"PT018",
# pytest-fixture-param-without-value
"PT019",
# The following rules may cause conflicts when used with the formatter:
"ISC001",
# using f-string in logging
"G004",
]