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
27 changes: 0 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,6 @@ env:
UV_VERSION: "0.10.11"

jobs:
commit-check:
name: Commit Messages
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Check out code with full history
uses: actions/checkout@v7
with:
fetch-depth: 0 # Needed for commit range check

- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: ${{ env.UV_VERSION }}
enable-cache: true

- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.11'

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

- name: Check commit messages in PR
run: uv run cz check --rev-range ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}

python-checks:
name: Linting and Formatting
runs-on: ubuntu-latest
Expand Down
7 changes: 0 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.8.3
hooks:
- id: commitizen
stages: [commit-msg]
additional_dependencies: [cz-conventional-gitmoji==0.7.0]

- repo: https://github.com/astral-sh/ruff-pre-commit
# Keep in sync with the ruff version resolved by uv / used in CI
# (.github/workflows/ci.yml runs `uv run ruff …`). Version drift here
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ To set up your environment for local development:
4. (Optional but Recommended) Install pre-commit hooks:

```bash
uv run pre-commit install --hook-type commit-msg --hook-type pre-commit
uv run pre-commit install
```

## Styleguides

### Git Commit Messages

We follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification. This is enforced locally via pre-commit hooks (if installed) and in our CI pipeline.
We follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification.

Commit messages should be structured as follows:

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ dev = [
"pytest>=8.3.5",
"pre-commit>=4.2.0",
"commitizen>=4.7.1",
"cz-conventional-gitmoji>=0.7.0",
"pytest-cov>=6.1.1",
"pytest-rerunfailures>=14.0",
"pytest-xdist>=3.0",
Expand All @@ -70,7 +69,7 @@ docs = [
hackagent = "hackagent.cli.main:cli"

[tool.commitizen]
name = "cz_gitmoji"
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "pep621"
Expand Down
59 changes: 22 additions & 37 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading