Skip to content

Commit

Permalink
test: convert pre-commit entries to local where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Feb 17, 2022
1 parent 12b05b8 commit bbffa2f
Showing 1 changed file with 33 additions and 26 deletions.
59 changes: 33 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,47 @@
fail_fast: true
repos:
- repo: https://github.com/psf/black
rev: 21.6b0
hooks:
- id: black
language_version: python3
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/jorisroovers/gitlint
rev: v0.15.1
hooks:
- id: gitlint
args: [--contrib=contrib-title-conventional-commits, --ignore=body-is-missing, --msg-filename]
- repo: https://github.com/marco-c/taskcluster_yml_validator
rev: v0.0.7
hooks:
- id: taskcluster_yml
- repo: https://github.com/MozillaSecurity/orion
rev: v0.0.2
hooks:
- id: orion_ci
- repo: https://github.com/pappasam/toml-sort
rev: v0.19.0
hooks:
- id: toml-sort
args: [--check, -a]
- repo: local
hooks:
- id: black
name: black
entry: poetry run black --check --diff
language: system
types: [ python ]
- id: flake8
name: flake8
entry: poetry run flake8
language: system
types: [ python ]
require_serial: true
- id: gitlint
name: gitlint
entry: poetry run gitlint
language: system
args: [--contrib=contrib-title-conventional-commits, --ignore=body-is-missing, --msg-filename]
stages: [commit-msg]
- id: mypy
name: mypy
entry: poetry run mypy bugmon
pass_filenames: false
language: system
- id: pylint
name: pylint
entry: poetry run pylint -j 0 bugmon
pass_filenames: false
language: system
- id: mypy
name: mypy
entry: poetry run mypy bugmon
- id: taskcluster_yml
name: taskcluster_yml
entry: poetry run taskcluster_yml --check -a
pass_filenames: false
language: python
files: "^\\.taskcluster\\.yml$"
require_serial: false
- id: toml-sort
name: toml-sort
entry: poetry run toml-sort --check -a
pass_filenames: false
language: system

0 comments on commit bbffa2f

Please sign in to comment.