Skip to content

Commit adcfb26

Browse files
committed
chore: Template upgrade
1 parent 720f91e commit adcfb26

4 files changed

Lines changed: 40 additions & 40 deletions

File tree

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 0.7.0
2+
_commit: 0.7.3
33
_src_path: gh:pawamoy/copier-pdm
44
author_email: pawamoy@pm.me
55
author_fullname: "Timoth\xE9e Mazzucotelli"

config/mypy.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
ignore_missing_imports = true
33
exclude = tests/fixtures/
44
warn_unused_ignores = true
5+
show_error_codes = true

duties.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ def update_changelog(
4343
marker: str,
4444
version_regex: str,
4545
template_url: str,
46-
commit_style: str,
4746
) -> None:
4847
"""
4948
Update the given changelog file in place.
@@ -53,15 +52,16 @@ def update_changelog(
5352
marker: The line after which to insert new contents.
5453
version_regex: A regular expression to find currently documented versions in the file.
5554
template_url: The URL to the Jinja template used to render contents.
56-
commit_style: The style of commit messages to parse.
5755
"""
5856
from git_changelog.build import Changelog
57+
from git_changelog.commit import AngularStyle
5958
from jinja2.sandbox import SandboxedEnvironment
6059

60+
AngularStyle.DEFAULT_RENDER.insert(0, AngularStyle.TYPES["build"])
6161
env = SandboxedEnvironment(autoescape=False)
6262
template_text = urlopen(template_url).read().decode("utf8") # noqa: S310
6363
template = env.from_string(template_text)
64-
changelog = Changelog(".", style=commit_style)
64+
changelog = Changelog(".", style="angular")
6565

6666
if len(changelog.versions_list) == 1:
6767
last_version = changelog.versions_list[0]
@@ -101,7 +101,6 @@ def changelog(ctx):
101101
"marker": "<!-- insertion marker -->",
102102
"version_regex": r"^## \[v?(?P<version>[^\]]+)",
103103
"template_url": template_url,
104-
"commit_style": "angular",
105104
},
106105
title="Updating changelog",
107106
pty=PTY,

pyproject.toml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ classifiers = [
3030
"Typing :: Typed",
3131
]
3232
dependencies = [
33-
"pytkdocs>=0.14",
33+
"pytkdocs>=0.12",
3434
]
3535

3636
[project.urls]
@@ -48,53 +48,53 @@ version = {use_scm = true}
4848
includes = ["src/mkdocstrings"]
4949

5050
[tool.pdm.dev-dependencies]
51-
duty = ["duty~=0.7"]
51+
duty = ["duty>=0.7"]
5252
docs = [
53-
"mkdocs~=1.2",
54-
"mkdocs-coverage~=0.2",
55-
"mkdocs-gen-files~=0.3",
56-
"mkdocs-literate-nav~=0.4",
57-
"mkdocs-material~=8.0",
58-
"mkdocstrings~=0.16",
59-
"toml~=0.10",
53+
"mkdocs>=1.2",
54+
"mkdocs-coverage>=0.2",
55+
"mkdocs-gen-files>=0.3",
56+
"mkdocs-literate-nav>=0.4",
57+
"mkdocs-material>=7.3",
58+
"mkdocstrings>=0.16",
59+
"toml>=0.10",
6060
]
6161
format = [
62-
"autoflake~=1.4",
63-
"black~=21.10b0",
64-
"isort~=5.10",
62+
"autoflake>=1.4",
63+
"black>=21.10b0",
64+
"isort>=5.10",
6565
]
6666
maintain = [
6767
# TODO: remove this section when git-changelog is more powerful
68-
"git-changelog~=0.4",
68+
"git-changelog>=0.4",
6969
]
7070
quality = [
71-
"darglint~=1.8",
72-
"flake8-bandit~=2.1",
73-
"flake8-black~=0.2",
74-
"flake8-bugbear~=21.9",
75-
"flake8-builtins~=1.5",
76-
"flake8-comprehensions~=3.7",
77-
"flake8-docstrings~=1.6",
78-
"flake8-pytest-style~=1.5",
79-
"flake8-string-format~=0.3",
80-
"flake8-tidy-imports~=4.5",
81-
"flake8-variables-names~=0.0",
82-
"pep8-naming~=0.12",
83-
"wps-light~=0.15",
71+
"darglint>=1.8",
72+
"flake8-bandit>=2.1",
73+
"flake8-black>=0.2",
74+
"flake8-bugbear>=21.9",
75+
"flake8-builtins>=1.5",
76+
"flake8-comprehensions>=3.7",
77+
"flake8-docstrings>=1.6",
78+
"flake8-pytest-style>=1.5",
79+
"flake8-string-format>=0.3",
80+
"flake8-tidy-imports>=4.5",
81+
"flake8-variables-names>=0.0",
82+
"pep8-naming>=0.12",
83+
"wps-light>=0.15",
8484
]
8585
tests = [
86-
"pytest~=6.2",
87-
"pytest-cov~=3.0",
88-
"pytest-randomly~=3.10",
89-
"pytest-sugar~=0.9",
90-
"pytest-xdist~=2.4",
86+
"pytest>=6.2",
87+
"pytest-cov>=3.0",
88+
"pytest-randomly>=3.10",
89+
"pytest-sugar>=0.9",
90+
"pytest-xdist>=2.4",
9191
]
9292
typing = [
93-
"mypy~=0.910",
94-
"types-markdown~=3.3",
95-
"types-toml~=0.10",
93+
"mypy>=0.910",
94+
"types-markdown>=3.3",
95+
"types-toml>=0.10",
9696
]
97-
security = ["safety~=1.10"]
97+
security = ["safety>=1.10"]
9898

9999
[tool.black]
100100
line-length = 120

0 commit comments

Comments
 (0)