Skip to content

Commit

Permalink
feat(pre-commit): Add to pre-commit to GH #31
Browse files Browse the repository at this point in the history
Adding https://pre-commit.ci/ should reduce the quantity of poor code
from being added to the repository.

closes #31
  • Loading branch information
imAsparky committed Sep 2, 2021
1 parent c54d1bb commit bf25e6c
Showing 1 changed file with 30 additions and 19 deletions.
49 changes: 30 additions & 19 deletions .pre-commit-config.yaml
@@ -1,6 +1,17 @@
default_stages: [commit]
fail_fast: true

ci:
autofix_commit_msg: |
chore(pre-commit): Auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_commit_msg: "chore(pre-commit): Weekly pre-commit autoupdate"
autoupdate_schedule: weekly
skip: []
submodules: false

repos:
# - repo: https://github.com/Lucas-C/pre-commit-hooks
# rev: v1.1.9
Expand All @@ -19,29 +30,29 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
# - id: check-yaml
- id: check-yaml

# - repo: https://github.com/pycqa/pylint
# rev: pylint-2.6.0
# hooks:
# - id: pylint
- repo: https://github.com/pycqa/pylint
rev: pylint-2.6.0
hooks:
- id: pylint

# - repo: https://github.com/psf/black
# rev: 21.7b0
# hooks:
# - id: black
- repo: https://github.com/psf/black
rev: 21.7b0
hooks:
- id: black

# - repo: https://github.com/PyCQA/bandit
# rev: 1.7.0
# hooks:
# - id: bandit
# args: ["--ini=tox.ini"]
- repo: https://github.com/PyCQA/bandit
rev: 1.7.0
hooks:
- id: bandit
args: ["--ini=tox.ini"]

# - repo: https://github.com/pycqa/flake8
# rev: 3.9.2
# hooks:
# - id: flake8
# additional_dependencies: [flake8-typing-imports==1.10.0]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.10.0]

- repo: https://github.com/timothycrosley/isort
rev: 5.9.3
Expand Down

0 comments on commit bf25e6c

Please sign in to comment.