-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
120 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
[project]
authors = [
{name = "Jonas Hoersch", email = "[email protected]"},
{name = "Matthew Gidden", email = "[email protected]"},
]
description = "Harmonization, downscaling and gridding pipeline"
license = {text = "Apache License 2.0"}
name = "concordia"
readme = "README.rst"
requires-python = ">=3.9"
# Add here all kinds of additional classifiers as defined under
# https://pypi.org/classifiers/
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"attrs",
"cattrs",
"ptolemy-iamc>=0.3",
"aneris-iamc>=0.2.6",
"pandas-indexing>=0.4.1",
"pycountry",
"python-slugify",
"dominate",
]
dynamic = ["version"]
[project.optional-dependencies]
lint = [
"black",
"ruff",
]
rescue = [
"cartopy",
"geoutils",
"geopandas",
"pyreadr",
"rasterio",
"rioxarray",
]
test = [
"coverage",
"pytest",
"pytest-cov",
"hypothesis",
"pooch",
"nbformat",
"nbconvert",
]
[tool.setuptools_scm]
fallback_version = "999"
[tool.ruff]
builtins = ["ellipsis"]
exclude = [
".eggs",
"doc",
"_typed_ops.pyi",
]
target-version = "py39"
# E402: module level import not at top of file
# E501: line too long - let black worry about that
# E731: do not assign a lambda expression, use a def
# E741: ambiguous variable names
ignore = [
"E402",
"E501",
"E731",
"E741",
]
select = [
# Pyflakes
"F", # Pycodestyle
"E",
"W", # isort
"I", # Pyupgrade
"UP",
]
[tool.ruff.per-file-ignores]
# F401: imported but unsued
"__init__.py" = ["F401"]
[tool.ruff.isort]
known-first-party = ["aneris", "concordia"]
lines-after-imports = 2
[tool.jupytext]
formats = "ipynb,py:percent"
[tool.pytest.ini_options]
# Specify command line options as you would do when invoking pytest directly.
# e.g. --cov-report html (or xml) for html/xml output or --junitxml junit.xml
# in order to write a coverage file that can be read by Jenkins.
# CAUTION: --cov flags may prohibit setting breakpoints while debugging.
# Comment those flags to avoid this py.test issue.
addopts = "--cov skele --cov-report term-missing --verbose"
minversion = "6.0"
norecursedirs = [
"dist",
"build",
".tox",
]
testpaths = [
"tests",
]
# Use pytest markers to select/deselect specific tests
markers = [
# "slow: mark tests as slow (deselect with '-m \"not slow\"')",
# "system: mark end-to-end system tests",
# "ipopt: requires ipopt installed from conda-forge",
]
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=46.1.0", "setuptools_scm[toml]>=6.2"]