feat: set --force-exclude in pre-commit-mirror command (#23)

https://github.com/charliermarsh/ruff-pre-commit/pull/20 added the flag in pre-commit configuration, but since the source of truth is `pre-commit-mirror` command in the CI workflow, it is replaced by `ruff`, as can be shown in 380e8f2639.
This commit is contained in:
Mathieu Kniewallner 2023-01-21 23:46:31 +01:00 committed by GitHub
parent 380e8f2639
commit 514931592b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,6 @@ jobs:
git config user.name 'Github Actions' git config user.name 'Github Actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
- run: pre-commit-mirror --language python --package-name ruff --entry ruff --id ruff --types-or python --types-or pyi --require-serial --description "Run 'ruff' for extremely fast Python linting" . - run: pre-commit-mirror --language python --package-name ruff --entry 'ruff --force-exclude' --id ruff --types-or python --types-or pyi --require-serial --description "Run 'ruff' for extremely fast Python linting" .
- run: git push origin HEAD:refs/heads/main --tags - run: git push origin HEAD:refs/heads/main --tags