Skip to content
Merged
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
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Pre-commit

on:
pull_request:
push:
branches: [main]



jobs:
check-code:
runs-on: ubuntu-24.04
steps:
# This action sets the current path to the root of your github repo
- uses: actions/checkout@v6

- name: Install pre-commit
run: python3 -m pip install pre-commit

- name: Run hooks
run: pre-commit run --all
44 changes: 44 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: PyPI

on:
push:
branches:
- "main"
tags:
- "v*"
pull_request:
branches:
- "main"


jobs:
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

- name: Build SDist and wheel
run: pipx run build

- uses: actions/upload-artifact@v5
with:
path: dist/*

- name: Check metadata
run: pipx run twine check dist/*

publish:
needs: [dist]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
environment: pypi
permissions:
id-token: write

steps:
- uses: actions/download-artifact@v6
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,20 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10


[tool.bumpversion]
allow_dirty = false
commit = true
message = "Bump version: {current_version} → {new_version}"
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
current_version = "1.0.1"


[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
86 changes: 0 additions & 86 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.