generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (121 loc) · 3.69 KB
/
pyproject.toml
File metadata and controls
140 lines (121 loc) · 3.69 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
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
[project]
name = "noneflow"
version = "4.4.5"
description = "Manage publish related issues in nonebot2 project"
authors = [{ name = "uy_sun", email = "hmy0119@gmail.com" }]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.13.5"
dependencies = [
"click>=8.2.1",
"docker>=7.1.0",
"githubkit>=0.12.15",
"jinja2>=3.1.6",
"nonebot-adapter-github>=0.5.0",
"nonebot2>=2.4.2",
"pydantic-extra-types>=2.10.5",
"pyjson5>=2.0.0",
"tzdata>=2025.2",
]
[project.urls]
Homepage = "https://github.com/nonebot/noneflow"
Repository = "https://github.com/nonebot/noneflow.git"
Issues = "https://github.com/nonebot/noneflow/issues"
Changelog = "https://github.com/nonebot/noneflow/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"bump-my-version>=1.2.4",
"inline-snapshot>=0.31.1",
"nonebug>=0.4.3",
"poethepoet>=0.38.0",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"pytest-xdist>=3.8.0",
"respx>=0.22.0",
]
[tool.uv.pip]
universal = true
[tool.poe.tasks]
test = "pytest --cov=src --cov-report xml --junitxml=./junit.xml -n auto"
bump = "bump-my-version bump"
show-bump = "bump-my-version show-bump"
snapshot-create = "pytest --inline-snapshot=create"
snapshot-fix = "pytest --inline-snapshot=fix"
store-test = "python -m src.providers.store_test"
docker-test = "python -m src.providers.docker_test"
[tool.pyright]
pythonVersion = "3.13"
pythonPlatform = "All"
typeCheckingMode = "standard"
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.lint]
select = [
"F", # pyflakes
"W", # pycodestyle warnings
"E", # pycodestyle errors
"UP", # pyupgrade
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"T10", # flake8-debugger
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"TC", # flake8-type-checking
"DTZ", # flake8-datetimez
"RUF", # Ruff-specific rules
"I", # isort
]
ignore = [
"E402", # module-import-not-at-top-of-file
"E501", # line-too-long
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
"ASYNC230", # blocking-open-call-in-async-function
]
[tool.ruff.lint.isort]
known-third-party = ["docker"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
[tool.coverage.report]
exclude_also = ["if TYPE_CHECKING:", "raise NotImplementedError"]
[tool.coverage.run]
omit = ["*.jinja"]
[tool.nonebot]
adapters = [{ name = "GitHub", module_name = "nonebot.adapters.github" }]
plugin_dirs = ["src/plugins"]
[tool.inline-snapshot]
hash-length = 15
default-flags = ["report"]
default-flags-tui = ["create", "review"]
format-command = "ruff format --stdin-filename {filename}"
skip-snapshot-updates-for-now = false
[tool.inline-snapshot.shortcuts]
review = ["review"]
fix = ["create", "fix"]
[tool.bumpversion]
current_version = "4.4.5"
commit = true
message = "chore(release): {new_version}"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
search = "## [Unreleased]"
replace = "## [Unreleased]\n\n## [{new_version}] - {now:%Y-%m-%d}"
[[tool.bumpversion.files]]
filename = "CHANGELOG.md"
regex = true
search = "\\[Unreleased\\]: (https://.+?)v{current_version}\\.\\.\\.HEAD"
replace = "[Unreleased]: \\1v{new_version}...HEAD\n[{new_version}]: \\1v{current_version}...v{new_version}"
[[tool.bumpversion.files]]
filename = "uv.lock"
search = "name = \"noneflow\"\nversion = \"{current_version}\""
replace = "name = \"noneflow\"\nversion = \"{new_version}\""