Skip to content

Commit

Permalink
ci: enforce the Black code style as well as sorted imports
Browse files Browse the repository at this point in the history
  • Loading branch information
niheconomoum committed Jan 25, 2024
1 parent 7bccb6f commit bcef9c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[settings]
profile = black
skip_gitignore = true
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ repos:
rev: 7.0.0
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black

0 comments on commit bcef9c7

Please sign in to comment.