-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
196 lines (174 loc) · 4.3 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[project]
name = "osc-transformer-presteps"
version = "0.1.4"
description = "OS-Climate Data Extraction Tool"
authors = [
{name = "David Besslich", email = "90916810+DaBeIDS@users.noreply.github.com"},
]
requires-python = ">=3.9, !=3.9.7"
readme = "README.rst"
license = {file = "LICENSE.txt"}
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.11",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Topic :: Office/Business :: Financial",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
]
dependencies = [
"pdfminer>=20191125",
"pypdf>=4.0.0",
"numpy>=1.26.3",
"fastapi>=0.109.0",
"uvicorn>=0.27.0.post1",
"python-multipart>=0.0.6",
"streamlit>=1.12.0",
"altair<5",
"types-requests>=2.31.0.20240218",
"pydantic>=2.6.3",
"typer>=0.12.3",
"openpyxl>=3.1.4",
"fuzzywuzzy>=0.18.0",
"Levenshtein>=0.26.0",
]
[project.urls]
Homepage = "https://github.com/os-climate/osc-transformer-presteps"
Repository = "https://github.com/os-climate/osc-transformer-presteps"
Downloads = "https://github.com/os-climate/osc-transformer-presteps/releases"
"Bug Tracker" = "https://github.com/os-climate/osc-transformer-presteps/issues"
Documentation = "https://github.com/os-climate/osc-transformer-presteps/tree/main/docs"
"Source Code" = "https://github.com/os-climate/osc-transformer-presteps"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[metadata]
license-files = ["LICENSES.txt"]
[project.scripts]
osc-transformer-presteps = "osc_transformer_presteps.cli:run"
[project.optional-dependencies]
dev = [
"pylint",
"toml",
"yapf",
"pdm",
"tox",
"tox-pdm",
]
test = [
"pdm[pytest]",
"pytest>=8.1.1",
"pytest-cov>=5.0.0",
]
[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]
tox = ["tox", "tox-pdm"]
docs = ["sphinx>=7.2.6", "sphinx-copybutton>=0.5.2"]
lint = ["pre-commit"]
[tool.pytest.ini_options]
testpaths = [
"tests/",
]
addopts = "--cov"
[tool.coverage.run]
source = ["src"]
omit = ["test/*"]
# relative_files = true
[tool.coverage.report]
fail_under = 95
skip_empty = true
format = ["term", "term-missing", "html", "text"]
[tool.yapf]
blank_line_before_nested_class_or_def = true
column_limit = 88
[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.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
[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 = [
"E203",
"E501",
# Avoid incompatible rules
"D203",
"D213",
]
[tool.ruff.lint.extend-per-file-ignores]
# Ignore `D` rules everywhere except for the `src/` directory.
"!src/**.py" = ["D"]
[tool.ruff.lint.pycodestyle]
max-line-length = 160
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"