# HG changeset patch # User Amine Sehili # Date 1571582488 -3600 # Node ID 1c1bec06310368c093f2ae4dfdd3d279ef867414 # Parent c95f336c506995e46000210e74e0eb1f2ef16788 Update pre-commit hooks - Add entries for black and flake8 - Add config files for new entries diff -r c95f336c5069 -r 1c1bec063103 .flake8 --- /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 diff -r c95f336c5069 -r 1c1bec063103 .pre-commit-config.yaml --- 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 diff -r c95f336c5069 -r 1c1bec063103 pyproject.toml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyproject.toml Sun Oct 20 15:41:28 2019 +0100 @@ -0,0 +1,16 @@ +[tool.black] +line-length = 79 +include = '\.pyi?$' +exclude = ''' +/( + \.git + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | _build + | buck-out + | build + | dist +)/ +'''