-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
181 lines (164 loc) · 3.97 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
[project]
name = "ITR"
version = "v1.1.7"
description = "Assess the temperature alignment of current targets, commitments, and investment and lending portfolios."
authors = [
{ name = "Michael Tiemann", email = "72577720+MichaelTiemannOSC@users.noreply.github.com" },
]
requires-python = ">=3.9"
readme = "README.md"
license = { text = "Apache-2.0" }
keywords = ["Climate", "ITR", "Finance"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"autoapi>=2.0.1",
"fastparquet>=2024.2.0",
"numpy==1.26.2",
"openpyxl==3.1.2",
"openscm-units==0.6.1",
"orca==1.8",
"osc-ingest-tools>=0.5.2",
"pandas>=2.2.1",
"pip>=23.1.2",
"Pint>=0.23",
"Pint-Pandas<0.6.1",
"psutil==5.9.5",
"pydantic>=2.7.1",
"pygithub==1.55",
"pyproject-hooks==1.1.0",
"pytest==8.1.1",
"python-dotenv==1.0.0",
"setuptools>=65.7.0",
"sphinx<8,>=6",
"sphinx-autoapi>=2.0.1",
"sphinx-autodoc-typehints",
"sphinx-rtd-theme==1.3.0",
"SQLAlchemy>=2.0.29",
"tables>=3.8.0",
"trino==0.328.0",
"wheel>=0.41.0",
"xlrd==2.0.1",
"mypy-boto3-s3>=1.33.2",
"boto3-stubs-lite>=1.33.13",
"globalwarmingpotentials>=0.9.4",
]
[tool.setuptools.package-data]
itr = [
"py.typed"
]
[project.urls]
Homepage = "https://github.com/os-climate/ITR"
Repository = "https://github.com/os-climate/ITR"
Downloads = "https://github.com/os-climate/ITR/releases"
"Bug Tracker" = "https://github.com/os-climate/ITR/issues"
Documentation = "https://github.com/os-climate/ITR/tree/main/docs"
"Source Code" = "https://github.com/os-climate/ITR"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.version]
source = "scm"
[tool.pdm.scripts]
pre_release = "scripts/dev-versioning.sh"
release = "scripts/release-versioning.sh"
test = "pytest"
tox = "tox"
docs = { shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview" }
lint = "pre-commit run --all-files"
complete = { call = "tasks.complete:main", help = "Create autocomplete files for bash and fish" }
[tool.pdm.dev-dependencies]
test = ["pdm[pytest]", "pytest-cov"]
tox = ["tox", "tox-pdm>=0.5"]
docs = ["sphinx>=7.2.6", "sphinx-copybutton>=0.5.2"]
dev = ["tox>=4.11.3", "tox-pdm>=0.7.0"]
lint = ["pre-commit"]
[tool.pytest.ini_options]
testpaths = [
"test/",
]
addopts = "--cov --cov-report html --cov-report term-missing --cov-fail-under 70"
[tool.black]
line-length = 120
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = "120"
extend-ignore = [
"E501",
]
[tool.mypy]
ignore_missing_imports = true
[tool.coverage.run]
source = ["src"]
omit = ["test/*"]
# relative_files = true
[tool.ruff.lint]
extend-fixable = [
# Instead of trailing-whitespace
"W291", "W293"
]
extend-select = [
# Instead of pydocstyle
"D",
#Instead of flake8
"E", "F","B",
# Instead of pep8-naming
"N",
# Instead of flake8-debugger or debug-statements
"T10",
]
ignore = [
"B006",
"B007",
"B008",
"B011",
"B023",
"B024",
"B026",
"B027",
"B028",
"B904",
"D100",
"D101",
"D102",
"D103",
"D105",
"D107",
"D205",
"D400",
"D401",
"D404",
"D415",
"D419",
"E501",
"E721",
"F841",
"N801",
"N802",
"N803",
"N804",
"N805",
"N806",
"N807",
"N814",
"N815",
"N816",
"N999",
]