Skip to content

Commit 2e7ceb2

Browse files
committed
chore: Template upgrade
1 parent 3badbe9 commit 2e7ceb2

35 files changed

+704
-480
lines changed

.copier-answers.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 0.1.0
2+
_commit: 1.4.1
33
_src_path: gh:pawamoy/copier-uv
4-
author_email: [email protected]
4+
author_email: [email protected]
55
author_fullname: Timothée Mazzucotelli
66
author_username: pawamoy
77
copyright_date: '2021'
88
copyright_holder: Timothée Mazzucotelli
9-
copyright_holder_email: [email protected]
9+
copyright_holder_email: [email protected]
1010
copyright_license: ISC License
1111
insiders: false
1212
project_description: A legacy Python handler for mkdocstrings.
1313
project_name: mkdocstrings-python (legacy)
14-
python_package_command_line_name: mkdocstrings-python-legacy
14+
python_package_command_line_name: ''
1515
python_package_distribution_name: mkdocstrings-python-legacy
16-
python_package_import_name: mkdocstrings
16+
python_package_import_name: mkdocstrings_handlers
1717
repository_name: python-legacy
1818
repository_namespace: mkdocstrings
1919
repository_provider: github.com

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
PATH_add scripts

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
github: pawamoy
22
ko_fi: pawamoy
3+
polar: pawamoy
34
custom:
45
- https://www.paypal.me/pawamoy

.github/ISSUE_TEMPLATE/bug_report.md renamed to .github/ISSUE_TEMPLATE/1-bug.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ PASTE TRACEBACK HERE
5050
redacting sensitive information. -->
5151

5252
```bash
53-
python -m mkdocstrings_handler.python.debug # | xclip -selection clipboard
53+
python -m mkdocstrings_handlers.python.debug # | xclip -selection clipboard
5454
```
5555

56-
PASTE OUTPUT HERE
56+
PASTE MARKDOWN OUTPUT HERE
5757

5858
### Additional context
5959
<!-- Add any other relevant context about the problem here,
File renamed without changes.

.github/ISSUE_TEMPLATE/3-docs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Documentation update
3+
about: Point at unclear, missing or outdated documentation.
4+
title: "docs: "
5+
labels: docs
6+
assignees: pawamoy
7+
---
8+
9+
### Is something unclear, missing or outdated in our documentation?
10+
<!-- A clear and concise description of what the documentation issue is. Ex. I can't find an explanation on feature [...]. -->
11+
12+
### Relevant code snippets
13+
<!-- If the documentation issue is related to code, please provide relevant code snippets. -->
14+
15+
### Link to the relevant documentation section
16+
<!-- Add a link to the relevant section of our documentation, or any addition context. -->

.github/ISSUE_TEMPLATE/4-change.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Change request
3+
about: Suggest any other kind of change for this project.
4+
title: "change: "
5+
assignees: pawamoy
6+
---
7+
8+
### Is your change request related to a problem? Please describe.
9+
<!-- A clear and concise description of what the problem is. -->
10+
11+
### Describe the solution you'd like
12+
<!-- A clear and concise description of what you want to happen. -->
13+
14+
### Describe alternatives you've considered
15+
<!-- A clear and concise description of any alternative solutions you've considered. -->
16+
17+
### Additional context
18+
<!-- Add any other context or screenshots about the change request here. -->

.github/workflows/ci.yml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ env:
1414
LANG: en_US.utf-8
1515
LC_ALL: en_US.utf-8
1616
PYTHONIOENCODING: UTF-8
17+
PYTHON_VERSIONS: ""
1718

1819
jobs:
1920

@@ -28,36 +29,32 @@ jobs:
2829
- name: Fetch all tags
2930
run: git fetch --depth=1 --tags
3031

31-
- name: Set up PDM
32-
uses: pdm-project/setup-pdm@v3
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
3334
with:
34-
python-version: "3.8"
35+
python-version: "3.11"
3536

36-
- name: Resolving dependencies
37-
run: pdm lock -v --no-cross-platform -G ci-quality
37+
- name: Install uv
38+
run: pip install uv
3839

3940
- name: Install dependencies
40-
run: pdm install -G ci-quality
41+
run: make setup
4142

4243
- name: Check if the documentation builds correctly
43-
run: pdm run duty check-docs
44+
run: make check-docs
4445

4546
- name: Check the code quality
46-
run: pdm run duty check-quality
47+
run: make check-quality
4748

4849
- name: Check if the code is correctly typed
49-
run: pdm run duty check-types
50-
51-
- name: Check for vulnerabilities in dependencies
52-
run: pdm run duty check-dependencies
50+
run: make check-types
5351

5452
- name: Check for breaking changes in the API
55-
run: pdm run duty check-api
53+
run: make check-api
5654

5755
tests:
5856

5957
strategy:
60-
max-parallel: 4
6158
matrix:
6259
os:
6360
- ubuntu-latest
@@ -69,24 +66,37 @@ jobs:
6966
- "3.10"
7067
- "3.11"
7168
- "3.12"
69+
- "3.13"
70+
resolution:
71+
- highest
72+
- lowest-direct
73+
exclude:
74+
- os: macos-latest
75+
resolution: lowest-direct
76+
- os: windows-latest
77+
resolution: lowest-direct
7278
runs-on: ${{ matrix.os }}
73-
continue-on-error: ${{ matrix.python-version == '3.12' }}
79+
continue-on-error: ${{ matrix.python-version == '3.13' }}
7480

7581
steps:
7682
- name: Checkout
7783
uses: actions/checkout@v3
7884

79-
- name: Set up PDM
80-
uses: pdm-project/setup-pdm@v3
85+
- name: Set up Python
86+
uses: actions/setup-python@v5
8187
with:
8288
python-version: ${{ matrix.python-version }}
83-
allow-python-prereleases: true
89+
allow-prereleases: true
8490

85-
- name: Resolving dependencies
86-
run: pdm lock -v --no-cross-platform -G ci-tests
91+
- name: Setup uv
92+
uses: astral-sh/setup-uv@v1
93+
with:
94+
enable-cache: true
8795

8896
- name: Install dependencies
89-
run: pdm install --no-editable -G ci-tests
97+
env:
98+
UV_RESOLUTION: ${{ matrix.resolution }}
99+
run: make setup
90100

91101
- name: Run the test suite
92-
run: pdm run duty test
102+
run: make test

.gitignore

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1+
# editors
12
.idea/
2-
__pycache__/
3-
*.py[cod]
4-
dist/
3+
.vscode/
4+
5+
# python
56
*.egg-info/
6-
build/
7-
htmlcov/
7+
*.py[cod]
8+
.venv/
9+
.venvs/
10+
/build/
11+
/dist/
12+
13+
# tools
814
.coverage*
9-
pip-wheel-metadata/
15+
/.pdm-build/
16+
/htmlcov/
17+
/site/
18+
uv.lock
19+
20+
# cache
21+
.cache/
1022
.pytest_cache/
1123
.mypy_cache/
12-
site/
13-
pdm.lock
14-
pdm.toml
15-
.pdm-plugins/
16-
.pdm-python
17-
__pypackages__/
18-
.venv/
19-
.cache/
24+
.ruff_cache/
25+
__pycache__/

.gitpod.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ FROM gitpod/workspace-full
22
USER gitpod
33
ENV PIP_USER=no
44
RUN pip3 install pipx; \
5-
pipx install pdm; \
5+
pipx install uv; \
66
pipx ensurepath

0 commit comments

Comments
 (0)