Skip to content

Commit d4ef7a8

Browse files
committed
chore: Template upgrade
1 parent cd9407f commit d4ef7a8

23 files changed

Lines changed: 186 additions & 170 deletions

.copier-answers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Changes here will be overwritten by Copier
2-
_commit: 1.5.4
1+
# Changes here will be overwritten by Copier.
2+
_commit: 1.7.1
33
_src_path: gh:pawamoy/copier-uv
44
author_email: dev@pawamoy.fr
55
author_fullname: Timothée Mazzucotelli
66
author_username: pawamoy
77
copyright_date: '2020'
88
copyright_holder: Timothée Mazzucotelli
99
copyright_holder_email: dev@pawamoy.fr
10-
copyright_license: ISC License
10+
copyright_license: ISC
1111
insiders: false
1212
project_description: Load Python objects documentation.
1313
project_name: pytkdocs

.github/FUNDING.yml

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

.github/workflows/ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
python-version: "3.12"
3636

3737
- name: Setup uv
38-
uses: astral-sh/setup-uv@v3
38+
uses: astral-sh/setup-uv@v5
3939
with:
4040
enable-cache: true
4141
cache-dependency-glob: pyproject.toml
@@ -55,8 +55,16 @@ jobs:
5555
- name: Check for breaking changes in the API
5656
run: make check-api
5757

58+
- name: Store objects inventory for tests
59+
uses: actions/upload-artifact@v4
60+
with:
61+
name: objects.inv
62+
path: site/objects.inv
63+
5864
tests:
5965

66+
needs:
67+
- quality
6068
strategy:
6169
matrix:
6270
os:
@@ -96,16 +104,22 @@ jobs:
96104
allow-prereleases: true
97105

98106
- name: Setup uv
99-
uses: astral-sh/setup-uv@v3
107+
uses: astral-sh/setup-uv@v5
100108
with:
101109
enable-cache: true
102110
cache-dependency-glob: pyproject.toml
103-
cache-suffix: py${{ matrix.python-version }}
111+
cache-suffix: ${{ matrix.resolution }}
104112

105113
- name: Install dependencies
106114
env:
107115
UV_RESOLUTION: ${{ matrix.resolution }}
108116
run: make setup
109117

118+
- name: Download objects inventory
119+
uses: actions/download-artifact@v4
120+
with:
121+
name: objects.inv
122+
path: site/
123+
110124
- name: Run the test suite
111125
run: make test

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
python-version: "3.12"
2121
- name: Setup uv
22-
uses: astral-sh/setup-uv@v3
22+
uses: astral-sh/setup-uv@v5
2323
- name: Prepare release notes
2424
run: uv tool run git-changelog --release-notes > release-notes.md
2525
- name: Create release

CODE_OF_CONDUCT.md

Lines changed: 25 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2,128 +2,79 @@
22

33
## Our Pledge
44

5-
We as members, contributors, and leaders pledge to make participation in our
6-
community a harassment-free experience for everyone, regardless of age, body
7-
size, visible or invisible disability, ethnicity, sex characteristics, gender
8-
identity and expression, level of experience, education, socio-economic status,
9-
nationality, personal appearance, race, caste, color, religion, or sexual
10-
identity and orientation.
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
116

12-
We pledge to act and interact in ways that contribute to an open, welcoming,
13-
diverse, inclusive, and healthy community.
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
148

159
## Our Standards
1610

17-
Examples of behavior that contributes to a positive environment for our
18-
community include:
11+
Examples of behavior that contributes to a positive environment for our community include:
1912

2013
* Demonstrating empathy and kindness toward other people
2114
* Being respectful of differing opinions, viewpoints, and experiences
2215
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
24-
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the overall
26-
community
16+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
* Focusing on what is best not just for us as individuals, but for the overall community
2718

2819
Examples of unacceptable behavior include:
2920

30-
* The use of sexualized language or imagery, and sexual attention or advances of
31-
any kind
21+
* The use of sexualized language or imagery, and sexual attention or advances of any kind
3222
* Trolling, insulting or derogatory comments, and personal or political attacks
3323
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email address,
35-
without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
37-
professional setting
24+
* Publishing others' private information, such as a physical or email address, without their explicit permission
25+
* Other conduct which could reasonably be considered inappropriate in a professional setting
3826

3927
## Enforcement Responsibilities
4028

41-
Community leaders are responsible for clarifying and enforcing our standards of
42-
acceptable behavior and will take appropriate and fair corrective action in
43-
response to any behavior that they deem inappropriate, threatening, offensive,
44-
or harmful.
29+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
4530

46-
Community leaders have the right and responsibility to remove, edit, or reject
47-
comments, commits, code, wiki edits, issues, and other contributions that are
48-
not aligned to this Code of Conduct, and will communicate reasons for moderation
49-
decisions when appropriate.
31+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
5032

5133
## Scope
5234

53-
This Code of Conduct applies within all community spaces, and also applies when
54-
an individual is officially representing the community in public spaces.
55-
Examples of representing our community include using an official e-mail address,
56-
posting via an official social media account, or acting as an appointed
57-
representative at an online or offline event.
35+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
5836

5937
## Enforcement
6038

61-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62-
reported to the community leaders responsible for enforcement at
63-
dev@pawamoy.fr.
64-
All complaints will be reviewed and investigated promptly and fairly.
39+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at dev@pawamoy.fr. All complaints will be reviewed and investigated promptly and fairly.
6540

66-
All community leaders are obligated to respect the privacy and security of the
67-
reporter of any incident.
41+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
6842

6943
## Enforcement Guidelines
7044

71-
Community leaders will follow these Community Impact Guidelines in determining
72-
the consequences for any action they deem in violation of this Code of Conduct:
45+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
7346

7447
### 1. Correction
7548

76-
**Community Impact**: Use of inappropriate language or other behavior deemed
77-
unprofessional or unwelcome in the community.
49+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
7850

79-
**Consequence**: A private, written warning from community leaders, providing
80-
clarity around the nature of the violation and an explanation of why the
81-
behavior was inappropriate. A public apology may be requested.
51+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
8252

8353
### 2. Warning
8454

85-
**Community Impact**: A violation through a single incident or series of
86-
actions.
55+
**Community Impact**: A violation through a single incident or series of actions.
8756

88-
**Consequence**: A warning with consequences for continued behavior. No
89-
interaction with the people involved, including unsolicited interaction with
90-
those enforcing the Code of Conduct, for a specified period of time. This
91-
includes avoiding interactions in community spaces as well as external channels
92-
like social media. Violating these terms may lead to a temporary or permanent
93-
ban.
57+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
9458

9559
### 3. Temporary Ban
9660

97-
**Community Impact**: A serious violation of community standards, including
98-
sustained inappropriate behavior.
61+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
9962

100-
**Consequence**: A temporary ban from any sort of interaction or public
101-
communication with the community for a specified period of time. No public or
102-
private interaction with the people involved, including unsolicited interaction
103-
with those enforcing the Code of Conduct, is allowed during this period.
104-
Violating these terms may lead to a permanent ban.
63+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
10564

10665
### 4. Permanent Ban
10766

108-
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
110-
individual, or aggression toward or disparagement of classes of individuals.
67+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
11168

112-
**Consequence**: A permanent ban from any sort of public interaction within the
113-
community.
69+
**Consequence**: A permanent ban from any sort of public interaction within the community.
11470

11571
## Attribution
11672

117-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118-
version 2.1, available at
119-
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
73+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
12074

121-
Community Impact Guidelines were inspired by
122-
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
75+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
12376

124-
For answers to common questions about this code of conduct, see the FAQ at
125-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126-
[https://www.contributor-covenant.org/translations][translations].
77+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
12778

12879
[homepage]: https://www.contributor-covenant.org
12980
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html

CONTRIBUTING.md

Lines changed: 13 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Contributing
22

3-
Contributions are welcome, and they are greatly appreciated!
4-
Every little bit helps, and credit will always be given.
3+
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
54

65
## Environment setup
76

@@ -14,20 +13,15 @@ cd pytkdocs
1413
make setup
1514
```
1615

17-
> NOTE:
18-
> If it fails for some reason,
19-
> you'll need to install
20-
> [uv](https://github.com/astral-sh/uv)
21-
> manually.
16+
> NOTE: If it fails for some reason, you'll need to install [uv](https://github.com/astral-sh/uv) manually.
2217
>
2318
> You can install it with:
2419
>
2520
> ```bash
2621
> curl -LsSf https://astral.sh/uv/install.sh | sh
2722
> ```
2823
>
29-
> Now you can try running `make setup` again,
30-
> or simply `uv sync`.
24+
> Now you can try running `make setup` again, or simply `uv sync`.
3125
3226
You now have the dependencies installed.
3327
@@ -37,15 +31,10 @@ Run `make help` to see all the available actions!
3731
3832
## Tasks
3933
40-
The entry-point to run commands and tasks is the `make` Python script,
41-
located in the `scripts` directory. Try running `make` to show the available commands and tasks.
42-
The *commands* do not need the Python dependencies to be installed,
43-
while the *tasks* do.
44-
The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
34+
The entry-point to run commands and tasks is the `make` Python script, located in the `scripts` directory. Try running `make` to show the available commands and tasks. The *commands* do not need the Python dependencies to be installed,
35+
while the *tasks* do. The cross-platform tasks are written in Python, thanks to [duty](https://github.com/pawamoy/duty).
4536
46-
If you work in VSCode, we provide
47-
[an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup)
48-
for the project.
37+
If you work in VSCode, we provide [an action to configure VSCode](https://pawamoy.github.io/copier-uv/work/#vscode-setup) for the project.
4938
5039
## Development
5140
@@ -64,28 +53,21 @@ As usual:
6453
1. go to http://localhost:8000 and check that everything looks good
6554
1. follow our [commit message convention](#commit-message-convention)
6655
67-
If you are unsure about how to fix or ignore a warning,
68-
just let the continuous integration fail,
69-
and we will help you during review.
56+
If you are unsure about how to fix or ignore a warning, just let the continuous integration fail, and we will help you during review.
7057
7158
Don't bother updating the changelog, we will take care of this.
7259
7360
## Commit message convention
7461
75-
Commit messages must follow our convention based on the
76-
[Angular style](https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message)
77-
or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.html):
62+
Commit messages must follow our convention based on the [Angular style](https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message) or the [Karma convention](https://karma-runner.github.io/4.0/dev/git-commit-msg.html):
7863
7964
```
8065
<type>[(scope)]: Subject
8166
8267
[Body]
8368
```
8469
85-
**Subject and body must be valid Markdown.**
86-
Subject must have proper casing (uppercase for first letter
87-
if it makes sense), but no dot at the end, and no punctuation
88-
in general.
70+
**Subject and body must be valid Markdown.** Subject must have proper casing (uppercase for first letter if it makes sense), but no dot at the end, and no punctuation in general.
8971
9072
Scope and body are optional. Type can be:
9173
@@ -101,9 +83,7 @@ Scope and body are optional. Type can be:
10183
- `style`: A change in code style/format.
10284
- `tests`: About tests.
10385
104-
If you write a body, please add trailers at the end
105-
(for example issues and PR references, or co-authors),
106-
without relying on GitHub's flavored Markdown:
86+
If you write a body, please add trailers at the end (for example issues and PR references, or co-authors), without relying on GitHub's flavored Markdown:
10787
10888
```
10989
Body.
@@ -112,16 +92,9 @@ Issue #10: https://github.com/namespace/project/issues/10
11292
Related to PR namespace/other-project#15: https://github.com/namespace/other-project/pull/15
11393
```
11494
115-
These "trailers" must appear at the end of the body,
116-
without any blank lines between them. The trailer title
117-
can contain any character except colons `:`.
118-
We expect a full URI for each trailer, not just GitHub autolinks
119-
(for example, full GitHub URLs for commits and issues,
120-
not the hash or the #issue-number).
95+
These "trailers" must appear at the end of the body, without any blank lines between them. The trailer title can contain any character except colons `:`. We expect a full URI for each trailer, not just GitHub autolinks (for example, full GitHub URLs for commits and issues, not the hash or the #issue-number).
12196
122-
We do not enforce a line length on commit messages summary and body,
123-
but please avoid very long summaries, and very long lines in the body,
124-
unless they are part of code blocks that must not be wrapped.
97+
We do not enforce a line length on commit messages summary and body, but please avoid very long summaries, and very long lines in the body, unless they are part of code blocks that must not be wrapped.
12598
12699
## Pull requests guidelines
127100
@@ -146,5 +119,4 @@ And force-push:
146119
git push -f
147120
```
148121
149-
If this seems all too complicated, you can push or force-push each new commit,
150-
and we will squash them ourselves if needed, before merging.
122+
If this seems all too complicated, you can push or force-push each new commit, and we will squash them ourselves if needed, before merging.

config/ruff.toml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,24 @@ ignore = [
4747
]
4848

4949
[lint.per-file-ignores]
50-
"src/*/cli.py" = [
50+
"src/**/cli.py" = [
5151
"T201", # Print statement
5252
]
5353
"src/*/debug.py" = [
5454
"T201", # Print statement
5555
]
56+
"!src/*/*.py" = [
57+
"D100", # Missing docstring in public module
58+
]
59+
"!src/**.py" = [
60+
"D101", # Missing docstring in public class
61+
"D103", # Missing docstring in public function
62+
]
5663
"scripts/*.py" = [
5764
"INP001", # File is part of an implicit namespace package
5865
"T201", # Print statement
5966
]
60-
"tests/*.py" = [
67+
"tests/**.py" = [
6168
"ARG005", # Unused lambda argument
6269
"D103", # Missing docstring in public function
6370
"FBT001", # Boolean positional arg in function definition

0 commit comments

Comments
 (0)