From c9478b89dda637f7d515c3910264da9aafa63e6c Mon Sep 17 00:00:00 2001 From: Noe Brucy Date: Thu, 17 Dec 2020 11:27:46 +0100 Subject: [PATCH] [ci] remove some pre-commit hooks, add flak8 --- .flake8 | 7 +++++++ .pre-commit-config.yaml | 15 +++------------ 2 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 .flake8 diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..f5fac5c --- /dev/null +++ b/.flake8 @@ -0,0 +1,7 @@ +[flake8] +max-line-length = 120 +ignore = + # whitespace before ':' + E203 + # Line break before binary operator + W503 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ea6155a..6fbbb70 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,20 +10,11 @@ repos: - id: check-case-conflict - id: check-docstring-first - id: check-merge-conflict - - id: check-toml - id: check-yaml - id: debug-statements - id: end-of-file-fixer - - id: forbid-new-submodules - id: mixed-line-ending - id: trailing-whitespace - - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.7.0 - hooks: - - id: python-check-mock-methods - - id: python-no-eval - - id: python-no-log-warn - - id: python-use-type-annotations - repo: https://github.com/Lucas-C/pre-commit-hooks rev: v1.1.9 hooks: @@ -37,7 +28,7 @@ repos: hooks: - id: blacken-docs additional_dependencies: [ black==20.8b1 ] - - repo: https://github.com/asottile/setup-cfg-fmt - rev: v1.15.1 + - repo: https://gitlab.com/PyCQA/flake8 + rev: 3.8.4 hooks: - - id: setup-cfg-fmt + - id: flake8