Skip to content

Commit

Permalink
chore: changed refurb to run as manual (#132)
Browse files Browse the repository at this point in the history
* chore: changed refurb to run as manual

* ci: added pre-commit manual stage runner

* fix: fixed ci python version

* chore: changed default pre-commit stage
  • Loading branch information
RaczeQ authored Dec 7, 2022
1 parent dbc8d0e commit 9b9df54
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/run-manual-pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Run manual pre-commit stage"
on:
pull_request:
branches:
- main

jobs:
run-manual-stage:
name: Run pre-commit manual stage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: pre-commit/action@v3.0.0
with:
extra_args: --all-files --hook-stage manual
14 changes: 8 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_stages: [commit]
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
Expand Down Expand Up @@ -36,12 +37,6 @@ repos:
rev: v0.991
hooks:
- id: mypy
- repo: https://github.com/dosisod/refurb
rev: v1.8.0
hooks:
- id: refurb
language: python
language_version: python3.10
- repo: https://github.com/pdm-project/pdm
rev: 2.3.1
hooks:
Expand All @@ -60,6 +55,13 @@ repos:
exclude: mkdocs.yml # See https://github.com/readthedocs/readthedocs.org/issues/6889
- id: check-added-large-files
- id: detect-private-key
- repo: https://github.com/dosisod/refurb
rev: v1.8.0
hooks:
- id: refurb
language: python
language_version: python3.10
stages: [manual]

ci:
autofix_commit_msg: |
Expand Down

0 comments on commit 9b9df54

Please sign in to comment.