diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 000000000..c78d02fd4 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,21 @@ +--- +name: "Pre-commit" +on: + pull_request: + push: + branches: [main] +jobs: + pre-commit: + name: Run pre-commit + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - run: python -m pip install pre-commit + shell: bash + - uses: actions/cache@v4 + with: + path: ~/.cache/pre-commit + key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} + - run: pre-commit run --show-diff-on-failure --color=always -a + shell: bash diff --git a/uv.lock b/uv.lock index 440e443a1..6769d3b09 100644 --- a/uv.lock +++ b/uv.lock @@ -746,7 +746,7 @@ wheels = [ [[package]] name = "pytest-taskgraph" -version = "0.1.0" +version = "0.2.0" source = { directory = "packages/pytest-taskgraph" } dependencies = [ { name = "pytest" },