-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
127 lines (107 loc) · 3.28 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
[project]
name = "osc-transformer-based-extractor"
version = "0.1.6"
description = "OS-Climate Data Extraction Tool"
authors = [
{name = "Tanishq More", email = "[email protected]"},
]
requires-python = ">=3.9"
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 = [
"torch<=2.3.1",
"pandas>=2.2.2",
"tokenizers>=0.19.1",
"transformers>=4.40.0",
"pre-commit>=3.7.0",
"pytest>=8.2.1",
"pytest-cov>=5.0.0",
"scikit-learn>=1.5.0",
"accelerate>=0.31.0",
"typer[all]>=0.12.3",
"rich>=13.7.1",
"numpy<2.0.0",
"openpyxl>=3.1.5",
"datasets>=2.20.0",
]
[project.urls]
Homepage = "https://github.com/os-climate/osc-transformer-based-extractor"
Repository = "https://github.com/os-climate/osc-transformer-based-extractor"
Downloads = "https://github.com/os-climate/osc-transformer-based-extractor/releases"
"Bug Tracker" = "https://github.com/os-climate/osc-transformer-based-extractor/issues"
Documentation = "https://github.com/os-climate/osc-transformer-based-extractor/tree/main/docs"
"Source Code" = "https://github.com/os-climate/osc-transformer-based-extractor"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[metadata]
license-files = ["LICENSES.txt"]
[project.scripts]
osc-transformer-based-extractor = "osc_transformer_based_extractor.main_cli:app"
[project.optional-dependencies]
dev = [
"pylint",
"toml",
"yapf",
"pdm"
]
test = [
"pytest",
"pytest-cov"
]
[tool.pdm.scripts]
pre_release = "scripts/dev-versioning.sh"
release = "scripts/release-versioning.sh"
test = ["pdm[pytest]", "pytest-cov"]
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" }
# Define CLI commands
osc-transformer-based-extractor = "osc_transformer_based_extractor.main_cli:app"
[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", "pyproject-flake8"]
####
osc-transformer-based-extractor = { path = "osc_transformer_based_extractor" }
[tool.coverage.run]
source = ["src"]
[tool.yapf]
blank_line_before_nested_class_or_def = true
column_limit = 120
[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.pytest.ini_options]
testpaths = [
"test/",
]
addopts = "--cov --cov-report html --cov-report term-missing --cov-fail-under 70"