generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
121 lines (105 loc) · 3.22 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
[project]
name = "noneflow"
version = "3.3.3"
description = "Manage publish related issues in nonebot2 project"
authors = [{ name = "uy_sun", email = "[email protected]" }]
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">= 3.12"
dependencies = [
"docker>=7.1.0",
"githubkit>=0.11.14",
"jinja2>=3.1.4",
"nonebot-adapter-github>=0.4.1",
"nonebot2>=2.4.0",
"pre-commit>=4.0.1",
"pydantic-extra-types>=2.9.0",
"pyjson5>=1.6.7",
]
[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"
[project.optional-dependencies]
plugin = ["click>=8.1.7", "tzdata>=2024.2"]
[tool.uv]
dev-dependencies = [
"bump-my-version>=0.28.1",
"inline-snapshot>=0.13.3",
"nonebug>=0.4.2",
"poethepoet>=0.29.0",
"pytest-asyncio>=0.24.0",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.6.1",
"respx>=0.21.1",
]
[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"
[tool.pyright]
pythonVersion = "3.12"
pythonPlatform = "All"
typeCheckingMode = "standard"
[tool.ruff]
line-length = 88
target-version = "py312"
[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
"RUF", # Ruff-specific rules
"I", # isort
]
ignore = [
"E402", # module-import-not-at-top-of-file
"E501", # line-too-long
"UP037", # quoted-annotation
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
"ASYNC230", # blocking-open-call-in-async-function
]
[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 = ["src/providers/docker_test/plugin_test.py", "*.jinja"]
[tool.nonebot]
adapters = [{ name = "GitHub", module_name = "nonebot.adapters.github" }]
plugin_dirs = ["src/plugins"]
[tool.bumpversion]
current_version = "3.3.3"
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}"