Skip to content

Commit 7802b6f

Browse files
committed
chore: Template upgrade
1 parent 54c5d85 commit 7802b6f

File tree

19 files changed

+96
-750
lines changed

19 files changed

+96
-750
lines changed

.copier-answers.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier.
2-
_commit: 1.9.0
2+
_commit: 1.11.1
33
_src_path: gh:pawamoy/copier-uv
44
author_email: [email protected]
55
author_fullname: Timothée Mazzucotelli
@@ -8,12 +8,8 @@ copyright_date: '2024'
88
copyright_holder: Timothée Mazzucotelli
99
copyright_holder_email: [email protected]
1010
copyright_license: ISC
11-
insiders: true
12-
insiders_email: [email protected]
13-
insiders_repository_name: griffe-public-redundant-aliases
1411
project_description: Mark objects imported with redundant aliases as public.
1512
project_name: griffe-public-redundant-aliases
16-
public_release: false
1713
python_package_command_line_name: ''
1814
python_package_distribution_name: griffe-public-redundant-aliases
1915
python_package_import_name: griffe_public_redundant_aliases

.github/pull_request_template.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
<!-- Help reviewers by letting them know whether AI was used to create this PR. -->
33

44
- [ ] I did not use AI
5-
- [ ] I used AI and thorougly reviewed every code/docs change
5+
- [ ] I used AI and thoroughly reviewed every code/docs change
66

77
### Description of the change
88
<!-- Quick sentence for small changes, longer description for more impacting changes. -->
99

10-
1110
### Relevant resources
1211
<!-- Link to any relevant GitHub issue, PR or discussion, section in online docs, etc. -->
1312

.github/workflows/ci.yml

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,17 @@ name: ci
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- test-me-*
58
pull_request:
69
branches:
710
- main
811

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
15+
916
defaults:
1017
run:
1118
shell: bash
@@ -14,13 +21,30 @@ env:
1421
LANG: en_US.utf-8
1522
LC_ALL: en_US.utf-8
1623
PYTHONIOENCODING: UTF-8
24+
PYTHONWARNDEFAULTENCODING: "1"
1725
PYTHON_VERSIONS: ""
1826

1927
jobs:
2028

2129
quality:
30+
strategy:
31+
matrix:
32+
os:
33+
- ubuntu-latest
34+
- macos-latest
35+
- windows-latest
36+
python-version:
37+
- "3.10"
38+
- "3.14"
39+
include:
40+
- os: ubuntu-latest
41+
python-version: "3.11"
42+
- os: ubuntu-latest
43+
python-version: "3.12"
44+
- os: ubuntu-latest
45+
python-version: "3.13"
2246

23-
runs-on: ubuntu-latest
47+
runs-on: ${{ matrix.os }}
2448

2549
steps:
2650
- name: Checkout
@@ -30,9 +54,9 @@ jobs:
3054
fetch-tags: true
3155

3256
- name: Setup Python
33-
uses: actions/setup-python@v5
57+
uses: actions/setup-python@v6
3458
with:
35-
python-version: "3.12"
59+
python-version: ${{ matrix.python-version }}
3660

3761
- name: Setup uv
3862
uses: astral-sh/setup-uv@v5
@@ -57,58 +81,38 @@ jobs:
5781

5882
- name: Store objects inventory for tests
5983
uses: actions/upload-artifact@v4
84+
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.13' }}
6085
with:
6186
name: objects.inv
6287
path: site/objects.inv
6388

64-
exclude-test-jobs:
65-
runs-on: ubuntu-latest
66-
outputs:
67-
jobs: ${{ steps.exclude-jobs.outputs.jobs }}
68-
steps:
69-
- id: exclude-jobs
70-
run: |
71-
if ${{ github.repository_owner == 'pawamoy-insiders' }}; then
72-
echo 'jobs=[
73-
{"os": "macos-latest"},
74-
{"os": "windows-latest"},
75-
{"python-version": "3.10"},
76-
{"python-version": "3.11"},
77-
{"python-version": "3.12"},
78-
{"python-version": "3.13"},
79-
{"python-version": "3.14"}
80-
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
81-
else
82-
echo 'jobs=[
83-
{"os": "macos-latest", "resolution": "lowest-direct"},
84-
{"os": "windows-latest", "resolution": "lowest-direct"}
85-
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT
86-
fi
87-
8889
tests:
8990

9091
needs:
9192
- quality
92-
- exclude-test-jobs
9393
strategy:
9494
matrix:
9595
os:
9696
- ubuntu-latest
9797
- macos-latest
9898
- windows-latest
9999
python-version:
100-
- "3.9"
101100
- "3.10"
102101
- "3.11"
103102
- "3.12"
104103
- "3.13"
105104
- "3.14"
105+
- "3.15"
106106
resolution:
107107
- highest
108108
- lowest-direct
109-
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }}
109+
exclude:
110+
- os: macos-latest
111+
resolution: lowest-direct
112+
- os: windows-latest
113+
resolution: lowest-direct
110114
runs-on: ${{ matrix.os }}
111-
continue-on-error: ${{ matrix.python-version == '3.14' }}
115+
continue-on-error: true
112116

113117
steps:
114118
- name: Checkout
@@ -118,7 +122,7 @@ jobs:
118122
fetch-tags: true
119123

120124
- name: Setup Python
121-
uses: actions/setup-python@v5
125+
uses: actions/setup-python@v6
122126
with:
123127
python-version: ${{ matrix.python-version }}
124128
allow-prereleases: true

.github/workflows/release.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,15 @@ jobs:
1515
fetch-depth: 0
1616
fetch-tags: true
1717
- name: Setup Python
18-
uses: actions/setup-python@v5
18+
uses: actions/setup-python@v6
1919
with:
20-
python-version: "3.12"
20+
python-version: "3.13"
2121
- name: Setup uv
2222
uses: astral-sh/setup-uv@v5
23-
- name: Build dists
24-
if: github.repository_owner == 'pawamoy-insiders'
25-
run: uv tool run --from build pyproject-build
26-
- name: Upload dists artifact
27-
uses: actions/upload-artifact@v4
28-
if: github.repository_owner == 'pawamoy-insiders'
29-
with:
30-
name: griffe-public-redundant-aliases-insiders
31-
path: ./dist/*
3223
- name: Prepare release notes
33-
if: github.repository_owner != 'pawamoy-insiders'
3424
run: uv tool run git-changelog --release-notes > release-notes.md
35-
- name: Create release with assets
36-
uses: softprops/action-gh-release@v2
37-
if: github.repository_owner == 'pawamoy-insiders'
38-
with:
39-
files: ./dist/*
4025
- name: Create release
4126
uses: softprops/action-gh-release@v2
42-
if: github.repository_owner != 'pawamoy-insiders'
4327
with:
4428
body_path: release-notes.md
29+

.github/workflows/sponsors.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update sponsors
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
update-readme:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Update README and create PR
19+
uses: pawamoy/readme-insert@main
20+
with:
21+
markup-url: https://pawamoy.github.io/sponsors.txt
22+
start-marker: '<!-- sponsors-start -->'
23+
end-marker: '<!-- sponsors-end -->'
24+
commit-message: 'chore: Update sponsors section in README'
25+
pr-title: 'chore: Update sponsors section in README'
26+
pr-body: 'This PR updates the sponsors section in the README file.'

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# griffe-public-redundant-aliases
22

3+
[![ci](https://github.com/mkdocstrings/griffe-public-redundant-aliases/workflows/ci/badge.svg)](https://github.com/mkdocstrings/griffe-public-redundant-aliases/actions?query=workflow%3Aci)
34
[![documentation](https://img.shields.io/badge/docs-mkdocs-708FCC.svg?style=flat)](https://mkdocstrings.github.io/griffe-public-redundant-aliases/)
5+
[![pypi version](https://img.shields.io/pypi/v/griffe-public-redundant-aliases.svg)](https://pypi.org/project/griffe-public-redundant-aliases/)
46
[![gitter](https://img.shields.io/badge/matrix-chat-4DB798.svg?style=flat)](https://app.gitter.im/#/room/#griffe-public-redundant-aliases:gitter.im)
57

68
Mark objects imported with redundant aliases as public.
79

810
## Installation
911

10-
This project is available to sponsors only, through my Insiders program. See Insiders [explanation](https://mkdocstrings.github.io/griffe-public-redundant-aliases/insiders/) and [installation instructions](https://mkdocstrings.github.io/griffe-public-redundant-aliases/insiders/installation/).
12+
```bash
13+
pip install griffe-public-redundant-aliases
14+
```
1115

1216
## Usage
1317

@@ -33,3 +37,8 @@ plugins:
3337
extensions:
3438
- griffe_public_redundant_aliases
3539
```
40+
41+
## Sponsors
42+
43+
<!-- sponsors-start -->
44+
<!-- sponsors-end -->

config/pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ testpaths =
1010
# action:message_regex:warning_class:module_regex:line
1111
filterwarnings =
1212
error
13+
default::EncodingWarning
14+
error::EncodingWarning:griffe_public_redundant_aliases
1315
# TODO: remove once pytest-xdist 4 is released
1416
ignore:.*rsyncdir:DeprecationWarning:xdist

docs/.overrides/main.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{% extends "base.html" %}
22

33
{% block announce %}
4-
5-
<strong>Fund this project</strong> through
6-
<a href="{{ 'insiders/#how-to-become-a-sponsor' | url }}"><strong>sponsorship</strong></a>
7-
<span class="twemoji heart pulse">
8-
{% include ".icons/octicons/heart-fill-16.svg" %}
9-
</span> &mdash;
10-
4+
<strong>Fund this project</strong> through
5+
<a href="https://github.com/sponsors/pawamoy"><strong>sponsorship</strong></a>
6+
<span class="twemoji heart pulse">
7+
{% include ".icons/octicons/heart-fill-16.svg" %}
8+
</span> &mdash;
119
Follow
1210
<strong>@pawamoy</strong> on
1311
<a rel="me" href="https://fosstodon.org/@pawamoy">

0 commit comments

Comments
 (0)