-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Generate project with gh:pawamoy/copier-uv Copier template
- Loading branch information
0 parents
commit 3a5f9e9
Showing
57 changed files
with
2,956 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: 1.4.0 | ||
_src_path: gh:pawamoy/copier-uv | ||
author_email: dev@pawamoy.fr | ||
author_fullname: Timothée Mazzucotelli | ||
author_username: pawamoy | ||
copyright_date: '2024' | ||
copyright_holder: Timothée Mazzucotelli | ||
copyright_holder_email: dev@pawamoy.fr | ||
copyright_license: ISC License | ||
insiders: true | ||
insiders_email: insiders@pawamoy.fr | ||
insiders_repository_name: griffe-autodocstringstyle | ||
project_description: Set docstring style to 'auto' for external packages. | ||
project_name: griffe-autodocstringstyle | ||
public_release: false | ||
python_package_command_line_name: '' | ||
python_package_distribution_name: griffe-autodocstringstyle | ||
python_package_import_name: griffe_autodocstringstyle | ||
repository_name: griffe-autodocstringstyle | ||
repository_namespace: mkdocstrings | ||
repository_provider: github.com | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PATH_add scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
github: pawamoy | ||
ko_fi: pawamoy | ||
polar: pawamoy | ||
custom: | ||
- https://www.paypal.me/pawamoy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
--- | ||
name: Bug report | ||
about: Create a bug report to help us improve. | ||
title: "bug: " | ||
labels: unconfirmed | ||
assignees: [pawamoy] | ||
--- | ||
|
||
### Description of the bug | ||
<!-- Please provide a clear and concise description of what the bug is. --> | ||
|
||
### To Reproduce | ||
<!-- Please provide a Minimal Reproducible Example (MRE) if possible. | ||
Try to boil down the problem to a few lines of code. | ||
Your code should run by simply copying and pasting it. | ||
Example: | ||
``` | ||
git clone https://github.com/username/repro | ||
cd repro | ||
python -m venv .venv | ||
. .venv/bin/activate | ||
pip install -r requirements.txt | ||
... # command or code showing the issue | ||
``` | ||
--> | ||
|
||
``` | ||
WRITE MRE / INSTRUCTIONS HERE | ||
``` | ||
|
||
### Full traceback | ||
<!-- Please provide the full error message / traceback if any, by pasting it in the code block below. | ||
No screenshots! --> | ||
|
||
<details><summary>Full traceback</summary> | ||
|
||
```python | ||
PASTE TRACEBACK HERE | ||
``` | ||
|
||
</details> | ||
|
||
### Expected behavior | ||
<!-- Please provide a clear and concise description of what you expected to happen. --> | ||
|
||
### Environment information | ||
<!-- Please run the following command in your repository and paste its output below it, | ||
redacting sensitive information. --> | ||
|
||
```bash | ||
python -m griffe_autodocstringstyle.debug # | xclip -selection clipboard | ||
``` | ||
|
||
PASTE MARKDOWN OUTPUT HERE | ||
|
||
### Additional context | ||
<!-- Add any other relevant context about the problem here, | ||
like links to other issues or pull requests, screenshots, etc. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project. | ||
title: "feature: " | ||
labels: feature | ||
assignees: pawamoy | ||
--- | ||
|
||
### Is your feature request related to a problem? Please describe. | ||
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. --> | ||
|
||
### Describe the solution you'd like | ||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
### Describe alternatives you've considered | ||
<!-- A clear and concise description of any alternative solutions or features you've considered. --> | ||
|
||
### Additional context | ||
<!-- Add any other context or screenshots about the feature request here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
name: Documentation update | ||
about: Point at unclear, missing or outdated documentation. | ||
title: "docs: " | ||
labels: docs | ||
assignees: pawamoy | ||
--- | ||
|
||
### Is something unclear, missing or outdated in our documentation? | ||
<!-- A clear and concise description of what the documentation issue is. Ex. I can't find an explanation on feature [...]. --> | ||
|
||
### Relevant code snippets | ||
<!-- If the documentation issue is related to code, please provide relevant code snippets. --> | ||
|
||
### Link to the relevant documentation section | ||
<!-- Add a link to the relevant section of our documentation, or any addition context. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
name: Change request | ||
about: Suggest any other kind of change for this project. | ||
title: "change: " | ||
assignees: pawamoy | ||
--- | ||
|
||
### Is your change request related to a problem? Please describe. | ||
<!-- A clear and concise description of what the problem is. --> | ||
|
||
### Describe the solution you'd like | ||
<!-- A clear and concise description of what you want to happen. --> | ||
|
||
### Describe alternatives you've considered | ||
<!-- A clear and concise description of any alternative solutions you've considered. --> | ||
|
||
### Additional context | ||
<!-- Add any other context or screenshots about the change request here. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: I have a question / I need help | ||
url: https://github.com/mkdocstrings/griffe-autodocstringstyle/discussions/new?category=q-a | ||
about: Ask and answer questions in the Discussions tab. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
LANG: en_US.utf-8 | ||
LC_ALL: en_US.utf-8 | ||
PYTHONIOENCODING: UTF-8 | ||
PYTHON_VERSIONS: "" | ||
|
||
jobs: | ||
|
||
quality: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Fetch all tags | ||
run: git fetch --depth=1 --tags | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install uv | ||
run: pip install uv | ||
|
||
- name: Install dependencies | ||
run: make setup | ||
|
||
- name: Check if the documentation builds correctly | ||
run: make check-docs | ||
|
||
- name: Check the code quality | ||
run: make check-quality | ||
|
||
- name: Check if the code is correctly typed | ||
run: make check-types | ||
|
||
- name: Check for breaking changes in the API | ||
run: make check-api | ||
|
||
exclude-test-jobs: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
jobs: ${{ steps.exclude-jobs.outputs.jobs }} | ||
steps: | ||
- id: exclude-jobs | ||
run: | | ||
if ${{ github.repository_owner == 'pawamoy-insiders' }}; then | ||
echo 'jobs=[ | ||
{"os": "macos-latest"}, | ||
{"os": "windows-latest"}, | ||
{"python-version": "3.9"}, | ||
{"python-version": "3.10"}, | ||
{"python-version": "3.11"}, | ||
{"python-version": "3.12"}, | ||
{"python-version": "3.13"} | ||
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT | ||
else | ||
echo 'jobs=[ | ||
{"os": "macos-latest", "resolution": "lowest-direct"}, | ||
{"os": "windows-latest", "resolution": "lowest-direct"} | ||
]' | tr -d '[:space:]' >> $GITHUB_OUTPUT | ||
fi | ||
tests: | ||
|
||
needs: exclude-test-jobs | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
python-version: | ||
- "3.8" | ||
- "3.9" | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
- "3.13" | ||
resolution: | ||
- highest | ||
- lowest-direct | ||
exclude: ${{ fromJSON(needs.exclude-test-jobs.outputs.jobs) }} | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.python-version == '3.13' }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
allow-prereleases: true | ||
|
||
- name: Install uv | ||
run: pip install uv | ||
|
||
- name: Install dependencies | ||
env: | ||
UV_RESOLUTION: ${{ matrix.resolution }} | ||
run: make setup | ||
|
||
- name: Run the test suite | ||
run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: release | ||
|
||
on: push | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Fetch all tags | ||
run: git fetch --depth=1 --tags | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
- name: Install build | ||
if: github.repository_owner == 'pawamoy-insiders' | ||
run: python -m pip install build | ||
- name: Build dists | ||
if: github.repository_owner == 'pawamoy-insiders' | ||
run: python -m build | ||
- name: Upload dists artifact | ||
uses: actions/upload-artifact@v4 | ||
if: github.repository_owner == 'pawamoy-insiders' | ||
with: | ||
name: griffe-autodocstringstyle-insiders | ||
path: ./dist/* | ||
- name: Install git-changelog | ||
if: github.repository_owner != 'pawamoy-insiders' | ||
run: pip install git-changelog | ||
- name: Prepare release notes | ||
if: github.repository_owner != 'pawamoy-insiders' | ||
run: git-changelog --release-notes > release-notes.md | ||
- name: Create release with assets | ||
uses: softprops/action-gh-release@v1 | ||
if: github.repository_owner == 'pawamoy-insiders' | ||
with: | ||
files: ./dist/* | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
if: github.repository_owner != 'pawamoy-insiders' | ||
with: | ||
body_path: release-notes.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# editors | ||
.idea/ | ||
.vscode/ | ||
|
||
# python | ||
*.egg-info/ | ||
*.py[cod] | ||
.venv/ | ||
.venvs/ | ||
/build/ | ||
/dist/ | ||
|
||
# tools | ||
.coverage* | ||
/.pdm-build/ | ||
/htmlcov/ | ||
/site/ | ||
|
||
# cache | ||
.cache/ | ||
.pytest_cache/ | ||
.mypy_cache/ | ||
.ruff_cache/ | ||
__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM gitpod/workspace-full | ||
USER gitpod | ||
ENV PIP_USER=no | ||
RUN pip3 install pipx; \ | ||
pipx install uv; \ | ||
pipx ensurepath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
vscode: | ||
extensions: | ||
- ms-python.python | ||
|
||
image: | ||
file: .gitpod.dockerfile | ||
|
||
ports: | ||
- port: 8000 | ||
onOpen: notify | ||
|
||
tasks: | ||
- init: make setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
<!-- insertion marker --> |
Oops, something went wrong.