-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
124 lines (110 loc) · 2.56 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "isimip-files-api"
authors = [
{ name = "Jochen Klar", email = "jochen.klar@pik-potsdam.de" },
]
maintainers = [
{ name = "Jochen Klar", email = "jochen.klar@pik-potsdam.de" },
]
description = "A webservice to asynchronously mask regions from NetCDF files, using Flask and RQ."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12'
]
dependencies = [
"colorlog~=6.8.2",
"Flask~=3.0.0",
"Flask-Cors~=4.0.0",
"geopandas~=0.14.3",
"gunicorn~=21.2.0",
"netCDF4~=1.6.5",
"numpy~=1.26.3",
"python-dotenv~=1.0.0",
"tomli",
"rioxarray~=0.15.0",
"rq~=1.15.1",
]
dynamic = ["version"]
[project.scripts]
create-mask = "isimip_files_api.scripts.create_mask:main"
[project.urls]
Repository = "https://github.com/ISI-MIP/isimip-files-api"
[project.optional-dependencies]
dev = [
"build",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mock",
"ruff",
"twine"
]
[tool.setuptools.packages.find]
include = ["isimip_files_api*"]
exclude = ["*tests*"]
[tool.setuptools.package-data]
"*" = ["*"]
[tool.setuptools.dynamic]
version = { attr = "isimip_files_api.__version__" }
[tool.ruff]
target-version = "py38"
line-length = 120
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PGH", # pygrep-hooks
"RUF", # ruff
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"B006", # mutable-argument-default
"B007", # unused-loop-control-variable
"B018", # useless-expression
"RUF012", # mutable-class-default
]
[tool.ruff.isort]
known-first-party = [
"isimip_files_api"
]
section-order = [
"future",
"standard-library",
"pytest",
"flask",
"rq",
"third-party",
"first-party",
"local-folder"
]
[tool.ruff.isort.sections]
pytest = ["pytest"]
flask = ["flask"]
rq = ["rq"]
[tool.pytest.ini_options]
testpaths = ["isimip_files_api"]
[tool.coverage.run]
source = ["isimip_files_api"]
[tool.coverage.report]
omit = [
"*/tests/*",
]
exclude_lines = [
"raise Exception",
"except ImportError:"
]