Skip to content

Commit

Permalink
Added isort pre-commit hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
alancleary committed Feb 16, 2023
1 parent 2e4bcf4 commit 4b310fc
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
default_language_version:
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
python: python3.10
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
# Args to ensure compatibility with Black
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#isort
# https://pycqa.github.io/isort/docs/configuration/black_compatibility.html
args: [--profile=black]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.10
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
Expand Down

0 comments on commit 4b310fc

Please sign in to comment.