-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
149 lines (134 loc) · 3.1 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
[project]
authors = [
{name = "Matthew Gidden", email = "matthew.gidden@gmail.com"},
{name = "Jonas Hoersch", email = "jonas.hoersch@climateanalytics.org"},
]
description = "Harmonize Integrated Assessment Model Emissions Trajectories"
license = {text = "Apache License 2.0"}
name = "aneris-iamc"
readme = "README.rst"
requires-python = ">=3.10"
# 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 = [
"numpy",
"pandas>=1.1",
"PyYAML",
"xlrd>=2.0",
"openpyxl",
"matplotlib",
"pyomo>=5",
"pandas-indexing>=0.4.0",
"pycountry",
]
dynamic = ["version"]
[project.optional-dependencies]
deploy = ["twine", "setuptools", "wheel"]
convenience = ["pyam-iamc"]
test = [
"coverage",
"pytest",
"pytest-cov",
"hypothesis",
"pooch",
"nbformat",
"nbconvert",
]
units = ["openscm-units"]
docs = [
"sphinx",
"sphinxcontrib-bibtex",
"sphinxcontrib-programoutput",
"sphinxcontrib-exceltable",
"sphinx-gallery",
"nbsphinx",
"numpydoc",
"nbformat",
"pillow",
]
lint = [
"black",
"ruff"
]
geo = [
"ptolemy-iamc @ git+https://github.com/gidden/ptolemy.git",
"pycountry",
"xarray",
"dask",
]
[project.scripts]
aneris = "aneris.cli:main"
[tool.setuptools_scm]
fallback_version = "999"
[tool.flake8]
ignore = ["I002", "F403", "E402", "E731", "E203", "W503"]
max-line-length = 88
exclude = [
"doc",
"tests"
]
[tool.ruff]
target-version = "py38"
builtins = ["ellipsis"]
exclude = [
".eggs",
"doc",
"_typed_ops.pyi",
]
[tool.ruff.lint]
# 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.lint.per-file-ignores]
# F401: imported but unsued
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["aneris"]
[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"]