Skip to content

Commit

Permalink
pre-commit: Run black from a non-local repo + skip local hooks from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pmav99 committed Sep 23, 2021
1 parent 4c443f1 commit 7a7dd25
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
default_language_version:
python: 'python3.9'
fail_fast: true
ci:
skip: ["prospector", "mypy"]

repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
Expand Down Expand Up @@ -30,14 +32,13 @@ repos:
args:
- "--py39-plus"

- repo: "local"
- repo: "https://github.com/psf/black"
rev: "21.9b0"
hooks:
- id: "black"
name: "black"
entry: "black"
language: "system"
types: ["python"]

- repo: "local"
hooks:

- id: "prospector"
name: "prospector"
Expand Down

0 comments on commit 7a7dd25

Please sign in to comment.