Skip to content

Commit 54c5d85

Browse files
committed
feat: Release Insiders project
1 parent ad1f847 commit 54c5d85

39 files changed

+1040
-627
lines changed

.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.4.0
1+
# Changes here will be overwritten by Copier.
2+
_commit: 1.9.0
33
_src_path: gh:pawamoy/copier-uv
44
author_email: [email protected]
55
author_fullname: Timothée Mazzucotelli
66
author_username: pawamoy
77
copyright_date: '2024'
88
copyright_holder: Timothée Mazzucotelli
99
copyright_holder_email: [email protected]
10-
copyright_license: ISC License
10+
copyright_license: ISC
1111
insiders: true
1212
insiders_email: [email protected]
1313
insiders_repository_name: griffe-public-redundant-aliases

.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/ISSUE_TEMPLATE/1-bug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ PASTE TRACEBACK HERE
5050
redacting sensitive information. -->
5151

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

5656
PASTE MARKDOWN OUTPUT HERE

.github/pull_request_template.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### For reviewers
2+
<!-- Help reviewers by letting them know whether AI was used to create this PR. -->
3+
4+
- [ ] I did not use AI
5+
- [ ] I used AI and thorougly reviewed every code/docs change
6+
7+
### Description of the change
8+
<!-- Quick sentence for small changes, longer description for more impacting changes. -->
9+
10+
11+
### Relevant resources
12+
<!-- Link to any relevant GitHub issue, PR or discussion, section in online docs, etc. -->
13+
14+
-
15+
-
16+
-

.github/workflows/ci.yml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,20 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
fetch-tags: true
2831

29-
- name: Fetch all tags
30-
run: git fetch --depth=1 --tags
31-
32-
- name: Set up Python
32+
- name: Setup Python
3333
uses: actions/setup-python@v5
3434
with:
35-
python-version: "3.11"
35+
python-version: "3.12"
3636

37-
- name: Install uv
38-
run: pip install uv
37+
- name: Setup uv
38+
uses: astral-sh/setup-uv@v5
39+
with:
40+
enable-cache: true
41+
cache-dependency-glob: pyproject.toml
3942

4043
- name: Install dependencies
4144
run: make setup
@@ -52,6 +55,12 @@ jobs:
5255
- name: Check for breaking changes in the API
5356
run: make check-api
5457

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+
5564
exclude-test-jobs:
5665
runs-on: ubuntu-latest
5766
outputs:
@@ -63,11 +72,11 @@ jobs:
6372
echo 'jobs=[
6473
{"os": "macos-latest"},
6574
{"os": "windows-latest"},
66-
{"python-version": "3.9"},
6775
{"python-version": "3.10"},
6876
{"python-version": "3.11"},
6977
{"python-version": "3.12"},
70-
{"python-version": "3.13"}
78+
{"python-version": "3.13"},
79+
{"python-version": "3.14"}
7180
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
7281
else
7382
echo 'jobs=[
@@ -78,44 +87,59 @@ jobs:
7887
7988
tests:
8089

81-
needs: exclude-test-jobs
90+
needs:
91+
- quality
92+
- exclude-test-jobs
8293
strategy:
8394
matrix:
8495
os:
8596
- ubuntu-latest
8697
- macos-latest
8798
- windows-latest
8899
python-version:
89-
- "3.8"
90100
- "3.9"
91101
- "3.10"
92102
- "3.11"
93103
- "3.12"
94104
- "3.13"
105+
- "3.14"
95106
resolution:
96107
- highest
97108
- lowest-direct
98109
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
99110
runs-on: ${{ matrix.os }}
100-
continue-on-error: ${{ matrix.python-version == '3.13' }}
111+
continue-on-error: ${{ matrix.python-version == '3.14' }}
101112

102113
steps:
103114
- name: Checkout
104115
uses: actions/checkout@v4
116+
with:
117+
fetch-depth: 0
118+
fetch-tags: true
105119

106-
- name: Set up Python
120+
- name: Setup Python
107121
uses: actions/setup-python@v5
108122
with:
109123
python-version: ${{ matrix.python-version }}
110124
allow-prereleases: true
111125

112-
- name: Install uv
113-
run: pip install uv
126+
- name: Setup uv
127+
uses: astral-sh/setup-uv@v5
128+
with:
129+
enable-cache: true
130+
cache-dependency-glob: pyproject.toml
131+
cache-suffix: ${{ matrix.resolution }}
114132

115133
- name: Install dependencies
116134
env:
117135
UV_RESOLUTION: ${{ matrix.resolution }}
118136
run: make setup
119137

138+
- name: Download objects inventory
139+
uses: actions/download-artifact@v4
140+
with:
141+
name: objects.inv
142+
path: site/
143+
120144
- name: Run the test suite
121145
run: make test

.github/workflows/release.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,34 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v4
14-
- name: Fetch all tags
15-
run: git fetch --depth=1 --tags
14+
with:
15+
fetch-depth: 0
16+
fetch-tags: true
1617
- name: Setup Python
17-
uses: actions/setup-python@v4
18-
- name: Install build
19-
if: github.repository_owner == 'pawamoy-insiders'
20-
run: python -m pip install build
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.12"
21+
- name: Setup uv
22+
uses: astral-sh/setup-uv@v5
2123
- name: Build dists
2224
if: github.repository_owner == 'pawamoy-insiders'
23-
run: python -m build
25+
run: uv tool run --from build pyproject-build
2426
- name: Upload dists artifact
2527
uses: actions/upload-artifact@v4
2628
if: github.repository_owner == 'pawamoy-insiders'
2729
with:
2830
name: griffe-public-redundant-aliases-insiders
2931
path: ./dist/*
30-
- name: Install git-changelog
31-
if: github.repository_owner != 'pawamoy-insiders'
32-
run: pip install git-changelog
3332
- name: Prepare release notes
3433
if: github.repository_owner != 'pawamoy-insiders'
35-
run: git-changelog --release-notes > release-notes.md
34+
run: uv tool run git-changelog --release-notes > release-notes.md
3635
- name: Create release with assets
37-
uses: softprops/action-gh-release@v1
36+
uses: softprops/action-gh-release@v2
3837
if: github.repository_owner == 'pawamoy-insiders'
3938
with:
4039
files: ./dist/*
4140
- name: Create release
42-
uses: softprops/action-gh-release@v1
41+
uses: softprops/action-gh-release@v2
4342
if: github.repository_owner != 'pawamoy-insiders'
4443
with:
4544
body_path: release-notes.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/.pdm-build/
1616
/htmlcov/
1717
/site/
18+
uv.lock
1819

1920
# cache
2021
.cache/

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-
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 [email protected]. 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

0 commit comments

Comments
 (0)