Skip to content

Commit

Permalink
add pre-commit code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-barfoot committed Jun 14, 2023
1 parent 7720549 commit ff6ea18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 120
max-complexity = 10
select = B,C,E,F,W,T4,B9
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
language_version: python3.10

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8

0 comments on commit ff6ea18

Please sign in to comment.