Skip to content

Commit

Permalink
feat(ci): use pre-commit (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoremepunto authored May 31, 2024
1 parent e549590 commit 764bcb5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
python-version: '3.10'
architecture: 'x64'

- uses: pre-commit/[email protected]

- name: Install build dependencies
run: |
python -m pip install -U pip
Expand Down
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.6
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ Homepage = "https://www.github.com/RedHatInsights/bonfire"
[tool.ruff]
line-length = 100
indent-width = 4

0 comments on commit 764bcb5

Please sign in to comment.