Skip to content

Commit

Permalink
add pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Feb 2, 2024
1 parent 6e7e80f commit 9805953
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
ignore = E203, E501, W503
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/psf/black
rev: "23.10.0"
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: "5.12.0"
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: "6.1.0"
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "fc260393cc4ec09f8fc0a5ba4437f481c8b55dc1"
hooks:
- id: prettier

0 comments on commit 9805953

Please sign in to comment.