Mercurial > hg > auditok
changeset 326:1c1bec063103
Update pre-commit hooks
- Add entries for black and flake8
- Add config files for new entries
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Sun, 20 Oct 2019 15:41:28 +0100 |
parents | c95f336c5069 |
children | d2cede794997 |
files | .flake8 .pre-commit-config.yaml pyproject.toml |
diffstat | 3 files changed, 30 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.flake8 Sun Oct 20 15:41:28 2019 +0100 @@ -0,0 +1,5 @@ +[flake8] +ignore = E203, E266, E501, W503, F403, F401 +max-line-length = 79 +max-complexity = 18 +select = B,C,E,F,W,T4,B9
--- a/.pre-commit-config.yaml Sun Oct 20 15:15:00 2019 +0100 +++ b/.pre-commit-config.yaml Sun Oct 20 15:41:28 2019 +0100 @@ -1,8 +1,10 @@ - repos: -- repo: git://github.com/pre-commit/mirrors-autopep8 - rev: v1.4.4 - hooks: - - id: autopep8 - args: ['-i', '--max-line-length=80'] - +- repo: https://github.com/psf/black + rev: stable + hooks: + - id: black + language_version: python3.6 +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.4.0 + hooks: + - id: flake8 \ No newline at end of file