-
Notifications
You must be signed in to change notification settings - Fork 98
/
pyproject.toml
120 lines (104 loc) · 3.41 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
# SPDX-FileCopyrightText: Contributors to atlite <https://github.com/pypsa/atlite>
#
# SPDX-License-Identifier: MIT
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "atlite"
dynamic = ["version"]
description = "Library for fetching and converting weather data to power systems data"
readme = "README.rst"
authors=[{name = "Contributors to atlite", email = "[email protected]"}]
license = { file = "LICENSE" }
classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
]
requires-python = ">=3.9"
dependencies = [
"typing-extensions",
"numpy<2.0",
"scipy",
"pandas>=0.25",
"bottleneck",
"numexpr",
"xarray>=2024.03.0",
"netcdf4",
"dask>=2021.10.0",
"toolz",
"requests",
"pyyaml",
"rasterio",
"shapely",
"progressbar2",
"tqdm",
"pyproj>=2",
"geopandas",
"cdsapi>=0.7.4",
]
[project.urls]
Homepage = "https://github.com/PyPSA/atlite"
Source = "https://github.com/PyPSA/atlite"
Documentation = "https://atlite.readthedocs.io/en/latest/"
[project.optional-dependencies]
dev = ["pre-commit", "pytest", "pytest-cov", "matplotlib", "ruff"]
docs = [
"numpydoc==1.8.0",
"sphinx==8.0.2",
"sphinx-book-theme==1.1.3",
"nbsphinx==0.9.5",
"nbsphinx-link==1.3.0",
"docutils==0.20", # Just temporarily until sphinx-docutils is updated (see https://github.com/sphinx-doc/sphinx/issues/12340)
]
# Setuptools_scm settings
[tool.setuptools_scm]
version_scheme = "no-guess-dev"
[tool.setuptools.packages.find]
include = ["atlite"]
# Formatter and linter settings
[tool.ruff]
extend-include = ['*.ipynb']
[tool.ruff.lint]
select = [
'F', # pyflakes
'E', # pycodestyle: Error
'W', # pycodestyle: Warning
'I', # isort
'D', # pydocstyle
'UP', # pyupgrade
'TID', # flake8-tidy-imports
# 'NPY', # numpy
'RUF013', # ruff
]
ignore = [
'E501', # line too long
'E741', # ambiguous variable names
'D105', # Missing docstring in magic method
'D212', # Multi-line docstring summary should start at the second line
'D200', # One-line docstring should fit on one line with quotes
'D401', # First line should be in imperative mood
'D404', # First word of the docstring should not be "This
'D413', # Missing blank line after last section
# # pydocstyle ignores, which could be enabled in future when existing
# # issues are fixed
'D100', # Missing docstring in public module
'D101', # Missing docstring in public class
'D102', # Missing docstring in public method
'D103', # Missing docstring in public function
'D107', # Missing docstring in __init__
'D202', # No blank lines allowed after function docstring
'D203', # 1 blank line required before class docstring
'D205', # 1 blank line required between summary line and description
'D400', # First line should end with a period
'D415', # First line should end with a period, question mark, or exclamation point
'D417', # Missing argument descriptions in the docstring
]