Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Task #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12,494 changes: 0 additions & 12,494 deletions .github/semantic_release/package-lock.json

This file was deleted.

9 changes: 0 additions & 9 deletions .github/semantic_release/package.json

This file was deleted.

93 changes: 0 additions & 93 deletions .github/semantic_release/release_notes.hbs

This file was deleted.

21 changes: 9 additions & 12 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,28 @@ jobs:
steps:
- name: Set up Github Workspace
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
fetch-depth: 0
- name: Set up Python Environment
uses: actions/setup-python@v5
with:
python-version: "3.11"
version: latest
python-version: 3.11
- name: Install Task
uses: arduino/setup-task@v2
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch pre-commit
hatch env create
hatch --version
run: task install
- name: Lint
id: lint
continue-on-error: true
run: |
echo "::add-matcher::.github/workflows/matchers/flake8.json"
hatch run lint:style
task lint
echo "::remove-matcher owner=flake8::"
- name: Type Checking
id: check
continue-on-error: true
run: |
echo "::add-matcher::.github/workflows/matchers/mypy.json"
hatch run lint:typing
task check
echo "::remove-matcher owner=mypy::"
- name: Raise Errors For Linting Failures
if: |
Expand Down
17 changes: 7 additions & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up Python
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch pre-commit
hatch --version
version: latest
python-version: 3.11
- name: Install Task
uses: arduino/setup-task@v2
- name: Build package
run: |
hatch build
run: uv build
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
50 changes: 19 additions & 31 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 2
ref: main
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Set up Python
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch pre-commit
hatch -v env create
hatch --version
- name: Release
run: hatch run gen:release
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
version: latest
python-version: 3.11
- name: Install Task
uses: arduino/setup-task@v2
- name: Semantic Release
uses: juftin/actions/semantic-release@v1
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

github-pages-publish:
runs-on: ubuntu-latest
Expand All @@ -57,19 +47,17 @@ jobs:
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up Python Environment
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.11"
- name: Install Hatch
run: |
python -m pip install --upgrade pip wheel
python -m pip install -q hatch pre-commit
hatch --version
- name: Create Virtual Environment
run: hatch env create docs
version: latest
python-version: 3.11
- name: Install Task
uses: arduino/setup-task@v2
- name: Install Python Dependencies
run: task install
- name: Build Site
run: hatch run docs:build
run: task docs -- build
- name: Setup GitHub Pages
uses: actions/configure-pages@v4
- name: Upload Artifact
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ jobs:
fail-fast: true
matrix:
include:
- { name: Python 3.13, python: "3.13" }
- { name: Python 3.12, python: "3.12" }
- { name: Python 3.11, python: "3.11" }
- { name: Python 3.10, python: "3.10" }
- { name: Python 3.9, python: "3.9" }
- { name: Python 3.8, python: "3.8" }
concurrency:
group: ${{ github.workflow }}-${{ matrix.python }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -36,17 +36,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python Environment ${{ matrix.python }}
uses: actions/setup-python@v5
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: latest
python-version: ${{ matrix.python }}
- name: Install Hatch
run: |
python -m pip install --upgrade pip
python -m pip install -q hatch pre-commit
hatch --version
- name: Install Task
uses: arduino/setup-task@v2
- name: Install Python Dependencies
run: task install
- name: Test Suite
run: |
echo "::add-matcher::.github/workflows/matchers/python.json"
hatch run +py="${{ matrix.python }}" all:cov
task test
echo "::remove-matcher owner=python::"
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
default_stages: [commit]
fail_fast: false
# yaml-language-server: $schema=https://json.schemastore.org/pre-commit-config.json

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: '\.svg$'
Expand All @@ -16,7 +15,7 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.11.0
rev: v2.14.0
hooks:
- id: pretty-format-toml
args: [--autofix]
Expand All @@ -36,16 +35,17 @@ repos:

- repo: local
hooks:
- id: format
- id: ruff-format
name: format
description: Runs Code Auto-Formatters
entry: hatch run lint:fmt
entry: uv run ruff format
language: system
pass_filenames: false
- id: lint
types:
- python
- id: ruff-check
name: lint
description: Runs Code Linters
entry: hatch run lint:all
entry: uv run ruff check --fix
language: system
pass_filenames: false
require_serial: false
types:
- python
61 changes: 0 additions & 61 deletions .releaserc.js

This file was deleted.

Loading
Loading