Skip to content

Commit

Permalink
Setup formatters as pre-commit hook
Browse files Browse the repository at this point in the history
(to use: pip install pre-commit; pre-commit install)
  • Loading branch information
JorisVincent committed Mar 13, 2023
1 parent f9ac5e5 commit eae9d61
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3

- repo: https://github.com/PyCQA/flake8
rev: "6.0.0"
hooks:
- id: flake8
additional_dependencies: ["pep8-naming"]
# Ignore all format-related checks as Black takes care of those.
args: ["--ignore", "E2,W5,E501", "--select", "E,W,F,N",]

0 comments on commit eae9d61

Please sign in to comment.