Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
44fefe2
init 2026 refactor - task and uv
cbates8 Aug 19, 2026
467e669
swap to basedpyright
cbates8 Aug 19, 2026
85f8fed
taskfile reorg
cbates8 Aug 20, 2026
62eb2c6
crit typos
cbates8 Aug 20, 2026
2b592bd
update pyright config
cbates8 Sep 27, 2026
bbc01db
format
cbates8 Sep 27, 2026
1d4c572
update taskfiles to fix zed thinking they're ansible
cbates8 Sep 28, 2026
38e43df
Full Repo Typecheck (#5)
cbates8 Sep 28, 2026
7d7940c
tweak crit validation
cbates8 Sep 29, 2026
31818cc
➕ dep-add: add cz and gitmoji
cbates8 Oct 24, 2026
5b84e46
🧑‍💻 devxp(task): add commit and gitmojify tasks
cbates8 Oct 24, 2026
0098924
🙈 ignore: track uv.lock
cbates8 Oct 24, 2026
93a7d8a
🔧 config(psr): init semantic release config
cbates8 Oct 24, 2026
bc9a4ab
🔧 config(docker): update dockerfile and add compose override
cbates8 Oct 24, 2026
41c99b0
🧹 chore: rename proj
cbates8 Oct 24, 2026
cab8836
💚 ci: init prerelease workflow
cbates8 Oct 26, 2026
ae48763
💚 ci(prerelease): bump action versions
cbates8 Oct 26, 2026
f2c7b15
💚 ci(dependabot): add quarterly dependency checks
cbates8 Oct 26, 2026
d8927f0
💚 ci(prerelease): update hygiene
cbates8 Oct 26, 2026
8bf6fe5
💚 ci(prerelease): swap hygiene to task
cbates8 Oct 26, 2026
b0818dc
💚 ci(task): fix gha tasks
cbates8 Oct 26, 2026
02c4fcc
💚 ci(prerelease): cut, build, and publish prerelease img
cbates8 Oct 26, 2026
a039440
💚 ci(prerelease): rm checkout ref
cbates8 Oct 26, 2026
b3ee6c6
💚 ci(prerelease): add different ref
cbates8 Oct 26, 2026
0cad244
1.0.0-rc.1
Oct 26, 2026
517a115
🔧 config(docker): update docker compose
cbates8 Oct 26, 2026
db196fc
🔧 config(pyproject): update psr commit msg
cbates8 Oct 26, 2026
46fc873
🔀 merge: branch '2026-refactor' of https://github.com/cbates8/VoloBot…
cbates8 Oct 26, 2026
8e4d495
🩹 fix-simple(inventory): add constants for inventory keys
cbates8 Oct 26, 2026
c97c2c4
🔧 config: tmp rm skip
cbates8 Oct 26, 2026
5b373a8
🔖 bump: 1.0.0-rc.2
Oct 26, 2026
2851f73
Revert "🔧 config: tmp rm skip"
cbates8 Oct 26, 2026
2d2f206
Revert "🩹 fix-simple(inventory): add constants for inventory keys"
cbates8 Oct 26, 2026
b49cd27
🩹 fix-simple(inventory): add constants for inventory keys
cbates8 Oct 26, 2026
934bc95
🔖 bump: 1.0.0-rc.3
Oct 26, 2026
a5bd37e
Reapply "🔧 config: tmp rm skip"
cbates8 Oct 26, 2026
1ac03d4
Revert "🩹 fix-simple(inventory): add constants for inventory keys"
cbates8 Oct 26, 2026
016da81
🩹 fix-simple(inventory): add constants for inventory keys
cbates8 Oct 26, 2026
9c293d6
🔀 merge: branch '2026-refactor' of https://github.com/cbates8/VoloBot…
cbates8 Oct 26, 2026
18fa344
🔖 bump: 1.0.0-rc.4
Oct 26, 2026
86f0a80
🔧 config(psr): update changelog config
cbates8 Oct 26, 2026
1ce1707
💚 ci: add release workflow
cbates8 Oct 26, 2026
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
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
updates:
# Actions used in .github/workflows/*
- package-ecosystem: github-actions
directory: /
schedule:
interval: quarterly
commit-message:
prefix: "💚 ci:"
groups:
actions:
patterns: ["*"]

# Python deps in pyproject.toml / uv.lock
- package-ecosystem: uv
directory: /
schedule:
interval: quarterly
commit-message:
prefix: "⬆️ dep-bump:"
groups:
python:
patterns: ["*"]
114 changes: 114 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: VoloBot Pre-Release

on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: prerelease-${{ github.ref }}
cancel-in-progress: false

env:
IMAGE: ghcr.io/cbates8/volobot
TASK-GHA: task gha

jobs:
# Lint, Format, Typecheck
# https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations
hygiene:
runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
command:
- lint
- format
- typecheck

steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: astral-sh/setup-uv@v7
with:
version: 0.9.26

- uses: arduino/setup-task@v2
with:
version: 3

- run: "${{ env.TASK-GHA }}:deps"

- run: "${{ env.TASK-GHA }}:${{ matrix.command }}"

# Generate Pre-Release
# https://python-semantic-release.readthedocs.io/en/latest/configuration/automatic-releases/github-actions.html
prerelease:
needs: hygiene
runs-on: ubuntu-latest

permissions:
id-token: write
contents: write

outputs:
released: ${{ steps.psr.outputs.released }}
version: ${{ steps.psr.outputs.version }}
tag: ${{ steps.psr.outputs.tag }}

steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Pin to triggering commit
run: git reset --hard ${{ github.event.pull_request.head.sha }}

- uses: python-semantic-release/python-semantic-release@v10.7.0
id: psr
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

# Build and Push to GHCR
# https://pradumnasaraf.dev/blog/publish-image-on-ghcr
publish:
needs: prerelease
runs-on: ubuntu-latest
if: needs.prerelease.outputs.released == 'true'

permissions:
contents: read
packages: write

steps:
# Checkout from the prerelease tag
- uses: actions/checkout@v7
with:
ref: ${{ needs.prerelease.outputs.tag }}

# Log in to GHCR
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Generate metadata
- uses: docker/metadata-action@v5
id: metadata
with:
images: ${{ env.IMAGE }}
tags: |
type=semver,pattern={{version}},value=${{ needs.prerelease.outputs.version }}

# Build and push image
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
85 changes: 85 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: VoloBot Release

on:
workflow_dispatch:
push:
branches: [main]

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

env:
IMAGE: ghcr.io/cbates8/volobot

jobs:
# Generate Release
# https://python-semantic-release.readthedocs.io/en/latest/configuration/automatic-releases/github-actions.html
release:
runs-on: ubuntu-latest

permissions:
id-token: write
contents: write

outputs:
released: ${{ steps.psr.outputs.released }}
version: ${{ steps.psr.outputs.version }}
tag: ${{ steps.psr.outputs.tag }}

steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.sha }}
fetch-depth: 0

- name: Pin to Workflow SHA
run: git checkout -B ${{ github.ref_name }} ${{ github.sha }}

- uses: python-semantic-release/python-semantic-release@v10.7.0
id: psr
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

# Build and Push to GHCR
# https://pradumnasaraf.dev/blog/publish-image-on-ghcr
publish:
needs: release
runs-on: ubuntu-latest
if: needs.release.outputs.released == 'true'

permissions:
contents: read
packages: write

steps:
# Checkout from the release tag
- uses: actions/checkout@v7
with:
ref: ${{ needs.release.outputs.tag }}

# Log in to GHCR
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Generate metadata
- uses: docker/metadata-action@v5
id: metadata
with:
images: ${{ env.IMAGE }}
tags: |
type=semver,pattern={{version}},value=${{ needs.release.outputs.version }}
type=raw,value=latest
# type=semver,pattern={{major}}.{{minor}},value=${{ needs.release.outputs.version }}
# type=semver,pattern={{major}},value=${{ needs.release.outputs.version }}

# Build and push image
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
.DS_Store

# Development
__pycache__
.venv
.vscode
__pycache__/
.venv/
.vscode/
.task/
.ruff_cache/
todo.txt

# Env
Expand Down
50 changes: 28 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,42 @@
default_language_version:
python: python3

# Include commit-msg to `pre-commit install` since it is used for commitizen and cz-conventional-gitmoji
default_install_hook_types: [pre-commit, commit-msg]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.17.2
hooks:
# Run the linter.
- id: ruff-check
args: [--fix]
# Run the formatter.
- id: ruff-format

- repo: https://github.com/psf/black-pre-commit-mirror
rev: "24.4.0"
- repo: https://github.com/DetachHead/basedpyright-prek-mirror
rev: 1.40.2
hooks:
- id: black
args:
- --line-length=160
- --include='\.py'
stages: [commit, manual]
types: [python]
- id: basedpyright

- repo: https://github.com/pycqa/isort
rev: 5.13.2
# Validate commit message adheres to commitizen format
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.19.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
stages: [commit, manual]
- id: commitizen
additional_dependencies: [cz-conventional-gitmoji]
fail_fast: true # Skip downstream hooks if this fails

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.4.1"
# Add gitmoji prefix if missing from validated commit message
- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: v0.7.0
hooks:
- id: ruff
args:
- --line-length=160
- --select=PL,A,ARG,ASYNC,E,F,B003,B006,B007,C901,N,PLR1711,PLR2004,RUF100,INP001
- --ignore=N999 #F722,PLW0603,PLR0913,PLR0912,PLC1901,PLW2901,PLR0915,PLR5501,PLR0402,PLR0911,PLW0602,PLE1205,PLR1711,PLR0133
stages: [commit, manual]
- id: conventional-gitmoji
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# CHANGELOG

<!-- version list -->

## v1.0.0-rc.4 (2026-10-26)


## v1.0.0-rc.3 (2026-10-26)

### Other

- Revert "🔧 config: tmp rm skip"
([`2851f73`](https://github.com/cbates8/VoloBot/commit/2851f73d19f32e07ff575d2a3892b93d5bd3fc6e))

- Revert "🩹 fix-simple(inventory): add constants for inventory keys"
([`2d2f206`](https://github.com/cbates8/VoloBot/commit/2d2f206f2f8929802aaac0868e3f16ecb4cdbdec))

### 🩹

- 🩹 fix-simple(inventory): add constants for inventory keys
([`b49cd27`](https://github.com/cbates8/VoloBot/commit/b49cd27e8b5bbf3a8a1b3c21337f31eb5a074138))


## v1.0.0-rc.2 (2026-10-26)

### Other

- 🔧 config: tmp rm skip
([`c97c2c4`](https://github.com/cbates8/VoloBot/commit/c97c2c4e713e368f671b836236a8362e0e81c1f0))

### 🩹

- 🩹 fix-simple(inventory): add constants for inventory keys
([`8e4d495`](https://github.com/cbates8/VoloBot/commit/8e4d495f6346c6ab409c9bf67e4b87fdd953d5f5))


## v1.0.0-rc.1 (2026-10-26)

- Initial Release
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
FROM python:3.10
FROM ghcr.io/astral-sh/uv:python3.14-alpine

COPY requirements.txt .
COPY pyproject.toml uv.lock /app/

RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /app

WORKDIR /src
RUN uv sync --locked --no-dev

CMD [ "python3", "volobot.py" ]
COPY src/ /app/src

WORKDIR /app/src

CMD [ "uv", "run", "volobot.py" ]
Loading
Loading