Skip to content

Commit cdd5d9d

Browse files
Update deps (#629)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent baebe9c commit cdd5d9d

File tree

17 files changed

+1178
-884
lines changed

17 files changed

+1178
-884
lines changed

.github/bake.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Docs: https://github.com/EbodShojaei/bake
2+
3+
[formatter]
4+
ensure_final_newline = true
5+
auto_insert_phony_declarations = true

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,12 @@ updates:
2626
open-pull-requests-limit: 10
2727
cooldown:
2828
default-days: 7
29+
30+
- package-ecosystem: github-actions
31+
directory: "/{{cookiecutter.project_name}}"
32+
schedule:
33+
interval: daily
34+
time: "02:00"
35+
open-pull-requests-limit: 10
36+
cooldown:
37+
default-days: 7

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
python-version: ['3.10', '3.11', '3.12', '3.13']
23+
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
2424

2525
steps:
2626
- uses: actions/checkout@v6

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,20 @@ repos:
2727
hooks:
2828
- id: shellcheck
2929

30+
- repo: https://github.com/astral-sh/ruff-pre-commit
31+
rev: v0.14.10
32+
hooks:
33+
- id: ruff
34+
args: ["--exit-non-zero-on-fix"]
35+
- id: ruff-format
36+
37+
- repo: https://github.com/EbodShojaei/bake
38+
rev: v1.4.4
39+
hooks:
40+
- id: mbake-format
41+
args: ["--config=.github/bake.toml"]
42+
- id: mbake-validate
43+
3044
- repo: https://github.com/pre-commit/pre-commit-hooks
3145
rev: v6.0.0
3246
hooks:

hooks/post_gen_project.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def generate_license() -> None:
3939
encoding='utf8',
4040
) as license_file:
4141
license_file.write(
42-
license_result.strip()
42+
license_result
43+
.strip()
4344
.replace(' \n ', ' \n')
4445
.replace('\n \n', '\n\n'),
4546
)

hooks/pre_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _validate_deps() -> None:
5151
_validate_deps,
5252
)
5353

54-
for validator in validators:
54+
for validator in validators: # noqa: WPS481
5555
try:
5656
validator()
5757
except ValueError as ex: # noqa: PERF203

poetry.lock

Lines changed: 450 additions & 386 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,23 @@ requires = ["poetry-core>=2.0"]
33
build-backend = "poetry.core.masonry.api"
44

55

6-
[project]
6+
[tool.poetry]
77
name = "wemake-python-package"
88
description = "Bleeding edge cookiecutter template to create new python packages"
99
version = "0.1.0"
10-
requires-python = ">=3.10,<3.14"
1110
readme = "README.md"
1211
authors = [
13-
{ name = "Nikita Sobolev", email = "[email protected]" },
12+
"Nikita Sobolev <[email protected]>",
1413
]
1514
license = "MIT"
16-
dynamic = ["dependencies", "classifiers"]
17-
18-
19-
[tool.poetry]
2015
package-mode = false
2116
classifiers = [
2217
"Private :: Do not Upload",
2318
]
2419

2520

2621
[tool.poetry.dependencies]
22+
python = "^3.10"
2723
cookiecutter = "^2.6"
2824
jinja2-git = "^1.4"
2925
lice = "^0.6"
@@ -33,7 +29,7 @@ setuptools = "*"
3329
binaryornot = "^0.4"
3430
tomli = "^2.3"
3531

36-
wemake-python-styleguide = "^1.4"
32+
wemake-python-styleguide = "^1.5"
3733
ruff = "^0.14"
3834

3935
mypy = "^1.19"

tests/test_project_generation.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,14 @@ def test_pyproject_toml(cookies: Cookies, context: dict[str, str]) -> None:
9494
(baked_project.project_path / 'pyproject.toml').read_text(),
9595
)
9696

97-
project = pyproject['project']
9897
poetry = pyproject['tool']['poetry']
9998

100-
assert project['name'] == context['project_name']
101-
assert project['description'] == context['project_description']
102-
assert project['repository'] == 'https://github.com/{}/{}'.format(
99+
assert poetry['name'] == context['project_name']
100+
assert poetry['description'] == context['project_description']
101+
assert poetry['repository'] == 'https://github.com/{}/{}'.format(
103102
context['organization'],
104103
context['project_name'],
105104
)
106-
assert poetry
107105

108106

109107
@pytest.mark.parametrize(
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Docs: https://github.com/EbodShojaei/bake
2+
3+
[formatter]
4+
ensure_final_newline = true
5+
auto_insert_phony_declarations = true

0 commit comments

Comments
 (0)