Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b09f7dd
Add gitignore
Maciek-roboblog Jul 13, 2025
ec78030
Add gitignore
Maciek-roboblog Jul 13, 2025
174de6d
Add gitignore
Maciek-roboblog Jul 13, 2025
96061b7
Add gitignore
Maciek-roboblog Jul 13, 2025
f49f667
Merge remote-tracking branch 'origin/v3.0.1' into v3.0.1
Maciek-roboblog Jul 13, 2025
09b7092
Add gitignore
Maciek-roboblog Jul 13, 2025
4ed32b3
Add gitignore
Maciek-roboblog Jul 13, 2025
85dd613
Add gitignore
Maciek-roboblog Jul 13, 2025
dab729e
Add gitignore
Maciek-roboblog Jul 13, 2025
9b17793
Add gitignore
Maciek-roboblog Jul 13, 2025
a3240db
Add gitignore
Maciek-roboblog Jul 13, 2025
ef7ecbc
Add gitignore
Maciek-roboblog Jul 13, 2025
276a3e3
Add gitignore
Maciek-roboblog Jul 13, 2025
a953d70
Add gitignore
Maciek-roboblog Jul 13, 2025
e1e4bd7
Add gitignore
Maciek-roboblog Jul 13, 2025
59a8343
Add gitignore
Maciek-roboblog Jul 13, 2025
77995e7
Add gitignore
Maciek-roboblog Jul 13, 2025
8f227f7
Add gitignore
Maciek-roboblog Jul 13, 2025
e37b3fa
Add gitignore
Maciek-roboblog Jul 13, 2025
5af0c79
Add gitignore
Maciek-roboblog Jul 13, 2025
8bbb225
Add gitignore
Maciek-roboblog Jul 13, 2025
25380ea
Add gitignore
Maciek-roboblog Jul 13, 2025
c64a7c7
Add gitignore
Maciek-roboblog Jul 13, 2025
2ab3b74
Update version
Maciek-roboblog Jul 13, 2025
4b9ec67
Update version
Maciek-roboblog Jul 13, 2025
e08ce8d
Update version
Maciek-roboblog Jul 13, 2025
e8f549b
Update version
Maciek-roboblog Jul 14, 2025
153e082
Update version
Maciek-roboblog Jul 14, 2025
3160161
Update README.md
Maciek-roboblog Jul 14, 2025
f04c617
Update README.md
Maciek-roboblog Jul 14, 2025
46c9b39
Update README.md
Maciek-roboblog Jul 14, 2025
f2ffe9f
Update theme
Maciek-roboblog Jul 14, 2025
1c8b2ab
Update theme
Maciek-roboblog Jul 14, 2025
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
15 changes: 0 additions & 15 deletions .coderabbit.yaml

This file was deleted.

125 changes: 63 additions & 62 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,63 @@
# name: Lint

# on:
# push:
# branches: [main]
# pull_request:
# branches: [main]

# jobs:
# ruff:
# runs-on: ubuntu-latest
# name: Lint with Ruff
# strategy:
# matrix:
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# steps:
# - uses: actions/checkout@v4

# - name: Install uv
# uses: astral-sh/setup-uv@v4
# with:
# version: "latest"

# - name: Set up Python ${{ matrix.python-version }}
# run: uv python install ${{ matrix.python-version }}

# - name: Install dependencies
# run: uv sync --extra dev

# - name: Run Ruff linter
# run: uv run ruff check --output-format=github .

# - name: Run Ruff formatter
# run: uv run ruff format --check .

# pre-commit:
# runs-on: ubuntu-latest
# name: Pre-commit hooks
# strategy:
# matrix:
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
# steps:
# - uses: actions/checkout@v4

# - name: Install uv
# uses: astral-sh/setup-uv@v4
# with:
# version: "latest"

# - name: Set up Python ${{ matrix.python-version }}
# run: uv python install ${{ matrix.python-version }}

# - name: Install pre-commit
# run: uv tool install pre-commit --with pre-commit-uv

# - name: Run pre-commit
# run: |
# # Run pre-commit and check if any files would be modified
# uv tool run pre-commit run --all-files --show-diff-on-failure || (
# echo "Pre-commit hooks would modify files. Please run 'pre-commit run --all-files' locally and commit the changes."
# exit 1
# )
name: Lint

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
ruff:
runs-on: ubuntu-latest
name: Lint with Ruff
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: uv sync --extra dev

- name: Run Ruff linter
run: uv run ruff check --output-format=github .

- name: Run Ruff formatter
run: uv run ruff format --check .


pre-commit:
runs-on: ubuntu-latest
name: Pre-commit hooks
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install pre-commit
run: uv tool install pre-commit --with pre-commit-uv

- name: Run pre-commit
run: |
# Run pre-commit and check if any files would be modified
uv tool run pre-commit run --all-files --show-diff-on-failure || (
echo "Pre-commit hooks would modify files. Please run 'pre-commit run --all-files' locally and commit the changes."
exit 1
)
222 changes: 111 additions & 111 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,111 +1,111 @@
# name: Release

# on:
# push:
# branches: [main]
# workflow_dispatch:

# jobs:
# check-version:
# runs-on: ubuntu-latest
# outputs:
# should_release: ${{ steps.check.outputs.should_release }}
# version: ${{ steps.extract.outputs.version }}
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Extract version from pyproject.toml
# id: extract
# run: |
# VERSION=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
# echo "version=$VERSION" >> $GITHUB_OUTPUT
# echo "Version: $VERSION"

# - name: Check if tag exists
# id: check
# run: |
# VERSION="${{ steps.extract.outputs.version }}"
# if git rev-parse "v$VERSION" >/dev/null 2>&1; then
# echo "Tag v$VERSION already exists"
# echo "should_release=false" >> $GITHUB_OUTPUT
# else
# echo "Tag v$VERSION does not exist"
# echo "should_release=true" >> $GITHUB_OUTPUT
# fi

# release:
# needs: check-version
# if: needs.check-version.outputs.should_release == 'true'
# runs-on: ubuntu-latest
# permissions:
# contents: write
# id-token: write # For trusted PyPI publishing
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Install uv
# uses: astral-sh/setup-uv@v4
# with:
# version: "latest"

# - name: Set up Python
# run: uv python install

# - name: Extract changelog for version
# id: changelog
# run: |
# VERSION="${{ needs.check-version.outputs.version }}"
# echo "Extracting changelog for version $VERSION"

# # Extract the changelog section for this version using sed
# sed -n "/^## \\[$VERSION\\]/,/^## \\[/{/^## \\[$VERSION\\]/d; /^## \\[/q; /^$/d; p}" CHANGELOG.md > release_notes.md

# # If no changelog found, create a simple message
# if [ ! -s release_notes.md ]; then
# echo "No specific changelog found for version $VERSION" > release_notes.md
# fi

# echo "Release notes:"
# cat release_notes.md

# - name: Create git tag
# run: |
# VERSION="${{ needs.check-version.outputs.version }}"
# git config user.name "GitHub Actions"
# git config user.email "actions@github.com"
# git tag -a "v$VERSION" -m "Release v$VERSION"
# git push origin "v$VERSION"

# - name: Create GitHub Release
# uses: softprops/action-gh-release@v2
# with:
# tag_name: v${{ needs.check-version.outputs.version }}
# name: Release v${{ needs.check-version.outputs.version }}
# body_path: release_notes.md
# draft: false
# prerelease: false

# - name: Build package
# run: |
# uv build
# ls -la dist/

# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# skip-existing: true

# notify-success:
# needs: [check-version, release]
# if: needs.check-version.outputs.should_release == 'true' && success()
# runs-on: ubuntu-latest
# steps:
# - name: Success notification
# run: |
# echo "๐ŸŽ‰ Successfully released v${{ needs.check-version.outputs.version }}!"
# echo "- GitHub Release: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.check-version.outputs.version }}"
# echo "- PyPI: https://pypi.org/project/claude-monitor/${{ needs.check-version.outputs.version }}/"
name: Release

on:
push:
branches: [main]
workflow_dispatch:

jobs:
check-version:
runs-on: ubuntu-latest
outputs:
should_release: ${{ steps.check.outputs.should_release }}
version: ${{ steps.extract.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Extract version from pyproject.toml
id: extract
run: |
VERSION=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"

- name: Check if tag exists
id: check
run: |
VERSION="${{ steps.extract.outputs.version }}"
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
echo "Tag v$VERSION already exists"
echo "should_release=false" >> $GITHUB_OUTPUT
else
echo "Tag v$VERSION does not exist"
echo "should_release=true" >> $GITHUB_OUTPUT
fi

release:
needs: check-version
if: needs.check-version.outputs.should_release == 'true'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write # For trusted PyPI publishing
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"

- name: Set up Python
run: uv python install

- name: Extract changelog for version
id: changelog
run: |
VERSION="${{ needs.check-version.outputs.version }}"
echo "Extracting changelog for version $VERSION"

# Extract the changelog section for this version using sed
sed -n "/^## \\[$VERSION\\]/,/^## \\[/{/^## \\[$VERSION\\]/d; /^## \\[/q; /^$/d; p}" CHANGELOG.md > release_notes.md

# If no changelog found, create a simple message
if [ ! -s release_notes.md ]; then
echo "No specific changelog found for version $VERSION" > release_notes.md
fi

echo "Release notes:"
cat release_notes.md

- name: Create git tag
run: |
VERSION="${{ needs.check-version.outputs.version }}"
git config user.name "maciekdymarczyk"
git config user.email "maciek@roboblog.eu"
git tag -a "v$VERSION" -m "Release v$VERSION"
git push origin "v$VERSION"

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ needs.check-version.outputs.version }}
name: Release v${{ needs.check-version.outputs.version }}
body_path: release_notes.md
draft: false
prerelease: false

- name: Build package
run: |
uv build
ls -la dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true

notify-success:
needs: [check-version, release]
if: needs.check-version.outputs.should_release == 'true' && success()
runs-on: ubuntu-latest
steps:
- name: Success notification
run: |
echo "๐ŸŽ‰ Successfully released v${{ needs.check-version.outputs.version }}!"
echo "- GitHub Release: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.check-version.outputs.version }}"
echo "- PyPI: https://pypi.org/project/claude-monitor/${{ needs.check-version.outputs.version }}/"
Loading
Loading