Skip to content

Commit eeeb97b

Browse files
committed
chore: Template upgrade
1 parent 995e5dc commit eeeb97b

5 files changed

Lines changed: 13 additions & 39 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.10.2
2+
_commit: 0.10.7
33
_src_path: gh:pawamoy/copier-pdm.git
44
author_email: pawamoy@pm.me
55
author_fullname: Timothée Mazzucotelli

.github/workflows/ci.yml

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

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

2929
- name: Set up PDM
30-
uses: pdm-project/setup-pdm@v2.6
30+
uses: pdm-project/setup-pdm@v3
3131
with:
3232
python-version: "3.8"
3333

34-
- name: Set cache variables
35-
id: set_variables
36-
run: |
37-
echo "::set-output name=PIP_CACHE::$(pip cache dir)"
38-
echo "::set-output name=PDM_CACHE::$(pdm config cache_dir)"
39-
40-
- name: Set up cache
41-
uses: actions/cache@v2
42-
with:
43-
path: |
44-
${{ steps.set_variables.outputs.PIP_CACHE }}
45-
${{ steps.set_variables.outputs.PDM_CACHE }}
46-
key: checks-cache
47-
4834
- name: Resolving dependencies
4935
run: pdm lock
5036

@@ -76,33 +62,19 @@ jobs:
7662
- "3.8"
7763
- "3.9"
7864
- "3.10"
79-
- "3.11-dev"
65+
- "3.11"
8066

8167
runs-on: ${{ matrix.os }}
8268

8369
steps:
8470
- name: Checkout
85-
uses: actions/checkout@v2
71+
uses: actions/checkout@v3
8672

8773
- name: Set up PDM
88-
uses: pdm-project/setup-pdm@v2.6
74+
uses: pdm-project/setup-pdm@v3
8975
with:
9076
python-version: ${{ matrix.python-version }}
9177

92-
- name: Set cache variables
93-
id: set_variables
94-
run: |
95-
echo "::set-output name=PIP_CACHE::$(pip cache dir)"
96-
echo "::set-output name=PDM_CACHE::$(pdm config cache_dir)"
97-
98-
- name: Set up cache
99-
uses: actions/cache@v2
100-
with:
101-
path: |
102-
${{ steps.set_variables.outputs.PIP_CACHE }}
103-
${{ steps.set_variables.outputs.PDM_CACHE }}
104-
key: tests-cache-${{ runner.os }}-${{ matrix.python-version }}
105-
10678
- name: Install dependencies
10779
run: pdm install --no-editable -G duty -G tests -G docs
10880

docs/css/mkdocstrings.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* Indentation. */
22
div.doc-contents:not(.first) {
33
padding-left: 25px;
4-
border-left: 4px solid rgba(230, 230, 230);
5-
margin-bottom: 80px;
4+
border-left: .05rem solid var(--md-typeset-table-color);
65
}
76

87
/* Avoid breaking parameters name, etc. in table cells. */

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "pdm.pep517.api"
66
name = "mkdocstrings"
77
description = "Automatic documentation from sources, for MkDocs."
88
authors = [{name = "Timothée Mazzucotelli", email = "pawamoy@pm.me"}]
9-
license-expression = "ISC"
9+
license = "ISC"
1010
readme = "README.md"
1111
requires-python = ">=3.7"
1212
keywords = ["mkdocs", "mkdocs-plugin", "docstrings", "autodoc", "documentation"]
@@ -86,8 +86,11 @@ maintain = [
8686
"git-changelog>=0.4",
8787
]
8888
quality = [
89+
# TODO: remove once importlib-metadata version conflict is resolved
90+
"importlib-metadata<5; python_version < '3.8'",
91+
"flake8>=4; python_version >= '3.8'",
92+
8993
"darglint>=1.8",
90-
"flake8<4", # TODO: remove once importlib-metadata version conflict is resolved
9194
"flake8-bandit>=2.1",
9295
"flake8-black>=0.2",
9396
"flake8-bugbear>=21.9",

scripts/gen_credits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_deps(base_deps):
5858
if dep_name not in deps:
5959
deps[dep_name] = {"license": get_license(dep_name), **parsed, **lock_pkgs[dep_name]}
6060
again = True
61-
61+
6262
return deps
6363

6464
dev_dependencies = get_deps(chain(*pdm.get("dev-dependencies", {}).values()))

0 commit comments

Comments
 (0)