diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e79ed8..f6f2ea1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,27 @@ repos: - # Remove unused imports + - repo: https://github.com/rtts/djhtml + rev: main + hooks: + - id: djhtml + - repo: https://github.com/myint/autoflake - rev: v1.4 + rev: master hooks: - id: autoflake args: ['--in-place', '--remove-all-unused-imports'] - # Sort imports - - repo: https://github.com/PyCQA/isort - rev: 5.7.0 + - repo: https://github.com/pycqa/isort + rev: main hooks: - id: isort + + - repo: https://github.com/pycqa/flake8 + rev: master + hooks: + - id: flake8 + + - repo: https://github.com/psf/black + rev: main + hooks: + - id: black diff --git a/example/.pre-commit-config.yaml b/example/.pre-commit-config.yaml new file mode 100644 index 0000000..f6f2ea1 --- /dev/null +++ b/example/.pre-commit-config.yaml @@ -0,0 +1,27 @@ +repos: + + - repo: https://github.com/rtts/djhtml + rev: main + hooks: + - id: djhtml + + - repo: https://github.com/myint/autoflake + rev: master + hooks: + - id: autoflake + args: ['--in-place', '--remove-all-unused-imports'] + + - repo: https://github.com/pycqa/isort + rev: main + hooks: + - id: isort + + - repo: https://github.com/pycqa/flake8 + rev: master + hooks: + - id: flake8 + + - repo: https://github.com/psf/black + rev: main + hooks: + - id: black diff --git a/example/setup.cfg b/example/setup.cfg new file mode 100644 index 0000000..6f094a9 --- /dev/null +++ b/example/setup.cfg @@ -0,0 +1,4 @@ +[flake8] +max-line-length = 88 +select = C,E,F,W,B,B950 +extend-ignore = E203, E501 diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..6f094a9 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,4 @@ +[flake8] +max-line-length = 88 +select = C,E,F,W,B,B950 +extend-ignore = E203, E501