Skip to content

Commit 2fe2b47

Browse files
committed
chore: Template upgrade
1 parent 080ddad commit 2fe2b47

10 files changed

Lines changed: 25 additions & 19 deletions

File tree

.copier-answers.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 1.2.0
2+
_commit: 1.2.3
33
_src_path: gh:pawamoy/copier-pdm.git
4-
author_email: pawamoy@pm.me
4+
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli
66
author_username: pawamoy
77
copyright_date: '2019'
88
copyright_holder: Timothée Mazzucotelli
9-
copyright_holder_email: pawamoy@pm.me
9+
copyright_holder_email: dev@pawamoy.fr
1010
copyright_license: ISC License
1111
insiders: true
12+
insiders_email: insiders@pawamoy.fr
1213
insiders_repository_name: mkdocstrings
1314
project_description: Automatic documentation from sources, for MkDocs.
1415
project_name: mkdocstrings

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828

2929
- name: Fetch all tags
3030
run: git fetch --depth=1 --tags
3131

3232
- name: Set up PDM
33-
uses: pdm-project/setup-pdm@v3
33+
uses: pdm-project/setup-pdm@v4
3434
with:
3535
python-version: "3.8"
3636

@@ -97,10 +97,10 @@ jobs:
9797

9898
steps:
9999
- name: Checkout
100-
uses: actions/checkout@v3
100+
uses: actions/checkout@v4
101101

102102
- name: Set up PDM
103-
uses: pdm-project/setup-pdm@v3
103+
uses: pdm-project/setup-pdm@v4
104104
with:
105105
python-version: ${{ matrix.python-version }}
106106
allow-python-prereleases: true

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
if: startsWith(github.ref, 'refs/tags/')
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Fetch all tags
1515
run: git fetch --depth=1 --tags
1616
- name: Setup Python
@@ -22,7 +22,7 @@ jobs:
2222
if: github.repository_owner == 'pawamoy-insiders'
2323
run: python -m build
2424
- name: Upload dists artifact
25-
uses: actions/upload-artifact@v3
25+
uses: actions/upload-artifact@v4
2626
if: github.repository_owner == 'pawamoy-insiders'
2727
with:
2828
name: mkdocstrings-insiders

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
2+
.vscode/
23
__pycache__/
34
*.py[cod]
45
dist/

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ representative at an online or offline event.
6060

6161
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6262
reported to the community leaders responsible for enforcement at
63-
pawamoy@pm.me.
63+
dev@pawamoy.fr.
6464
All complaints will be reviewed and investigated promptly and fairly.
6565

6666
All community leaders are obligated to respect the privacy and security of the

config/ruff.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
target-version = "py38"
2-
line-length = 132
2+
line-length = 120
33
exclude = [
44
"fixtures",
55
"site",
@@ -102,3 +102,7 @@ known-first-party = ["mkdocstrings"]
102102

103103
[pydocstyle]
104104
convention = "google"
105+
106+
[format]
107+
docstring-code-format = true
108+
docstring-code-line-length = 80

config/vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"configurations": [
44
{
55
"name": "python (current file)",
6-
"type": "python",
6+
"type": "debugpy",
77
"request": "launch",
88
"program": "${file}",
99
"console": "integratedTerminal",
1010
"justMyCode": false
1111
},
1212
{
1313
"name": "test",
14-
"type": "python",
14+
"type": "debugpy",
1515
"request": "launch",
1616
"module": "pytest",
1717
"justMyCode": false,

docs/insiders/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ You can use your individual or organization GitHub account for sponsoring.
8989

9090
**Important**: If you're sponsoring **[@pawamoy][github sponsor profile]**
9191
through a GitHub organization, please send a short email
92-
to pawamoy@pm.me with the name of your
92+
to insiders@pawamoy.fr with the name of your
9393
organization and the GitHub account of the individual
9494
that should be added as a collaborator.[^4]
9595

@@ -98,7 +98,7 @@ You can cancel your sponsorship anytime.[^5]
9898
[^4]:
9999
It's currently not possible to grant access to each member of an
100100
organization, as GitHub only allows for adding users. Thus, after
101-
sponsoring, please send an email to pawamoy@pm.me, stating which
101+
sponsoring, please send an email to insiders@pawamoy.fr, stating which
102102
account should become a collaborator of the Insiders repository. We're
103103
working on a solution which will make access to organizations much simpler.
104104
To ensure that access is not tied to a particular individual GitHub account,
@@ -189,7 +189,7 @@ yearly billing cycle][billing cycle]. If for some reason you cannot do that, you
189189
could also create a dedicated GitHub account with a yearly billing cycle, which
190190
you only use for sponsoring (some sponsors already do that).
191191

192-
If you have any problems or further questions, please reach out to pawamoy@pm.me.
192+
If you have any problems or further questions, please reach out to insiders@pawamoy.fr.
193193

194194
### Terms
195195

duties.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from typing import TYPE_CHECKING, Iterator
1111

1212
from duty import duty
13-
from duty.callables import black, coverage, lazy, mkdocs, mypy, pytest, ruff, safety
13+
from duty.callables import coverage, lazy, mkdocs, mypy, pytest, ruff, safety
1414

1515
if TYPE_CHECKING:
1616
from duty.context import Context
@@ -228,7 +228,7 @@ def format(ctx: Context) -> None:
228228
ruff.check(*PY_SRC_LIST, config="config/ruff.toml", fix_only=True, exit_zero=True),
229229
title="Auto-fixing code",
230230
)
231-
ctx.run(black.run(*PY_SRC_LIST, config="config/black.toml"), title="Formatting code")
231+
ctx.run(ruff.format(*PY_SRC_LIST, config="config/ruff.toml"), title="Formatting code")
232232

233233

234234
@duty(post=["docs-deploy"])

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "pdm.backend"
55
[project]
66
name = "mkdocstrings"
77
description = "Automatic documentation from sources, for MkDocs."
8-
authors = [{name = "Timothée Mazzucotelli", email = "pawamoy@pm.me"}]
8+
authors = [{name = "Timothée Mazzucotelli", email = "dev@pawamoy.fr"}]
99
license = {text = "ISC"}
1010
readme = "README.md"
1111
requires-python = ">=3.8"

0 commit comments

Comments
 (0)