This repository was archived by the owner on Apr 26, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (91 loc) · 2.59 KB
/
pyproject.toml
File metadata and controls
103 lines (91 loc) · 2.59 KB
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
[project]
version = "0.7.2"
name = "segformer-quantization-pipeline"
description = "An end-to-end quantization evaluation pipeline for SegFormer models on semantic segmentation tasks"
authors = [
{name = "qte77", email = "qte@77.gh"}
]
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
# "torch>=2.5.1",
"transformers>=4.47.1",
"evaluate>=0.4.3",
"quanto>=0.2.0",
"optimum-quanto>=0.2.0",
"wandb>=0.19.1",
"pillow>=11.0.0",
"datasets>=3.2.0",
"accelerate>=0.29.3",
]
# https://docs.astral.sh/uv/concepts/projects/dependencies/#optional-dependencies
# [project.optional-dependencies]
# Dependency groups
# https://docs.astral.sh/uv/concepts/projects/dependencies/#development-dependencies
# By default, uv includes the dev dependency group in the environment
# https://docs.astral.sh/uv/concepts/projects/dependencies/#default-groups
[dependency-groups]
dev = [
"pydantic>=2.10.4",
"pytest>=7.0.0",
"ruff>=0.8.0",
# "git-changelog>=2.5.2"
]
docs = [
"griffe>=1.5.1",
"mkdocs>=1.6.1",
"mkdocs-awesome-pages-plugin>=2.9.3",
"mkdocs-gen-files>=0.5.0",
"mkdocs-literate-nav>=0.6.1",
"mkdocs-material>=9.5.44",
"mkdocs-section-index>=0.3.8",
"mkdocstrings[python]>=0.27.0"
]
[tool.uv]
package = true
exclude-newer = "2024-12-31T00:00:00Z"
# https://docs.astral.sh/ruff/configuration/
[tool.ruff]
target-version = "py312"
src = ["scripts", "src", "tests"]
extend-exclude = ["*.ipynb"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
ignore = [
"E203", # Whitespace before ':'
# "MD024", # no-duplicate-heading
# "W503", # unknown to ruff? Line break before binary operator
]
unfixable = ["B"]
[tool.bumpversion]
current_version = "0.7.2"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
commit = true
tag = true
allow_dirty = false
ignore_missing_version = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
message = "Bump version: {current_version} → {new_version}"
commit_args = ""
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "README.md"
search = ""
replace = ""
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = """
## [Unreleased]
"""
replace = """
## [Unreleased]
---
## [{new_version}] - {now:%Y-%m-%d}
"""