From e42884cf608a91b1c98b2ca157885375d3ef9649 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sat, 7 Sep 2019 23:49:47 -0700 Subject: [PATCH] Add whitespace fixers --- .pre-commit-config.yaml | 6 ++++++ codecov.yml | 1 - docs/source/release-notes/3.7.0.rst | 1 - setup.cfg | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 89b46f6..383c467 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,10 @@ repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + exclude: ^tests/fixtures/diffs/ - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.720 hooks: diff --git a/codecov.yml b/codecov.yml index 4098f51..f7fc0be 100644 --- a/codecov.yml +++ b/codecov.yml @@ -40,4 +40,3 @@ comment: layout: "header, diff, changes, sunburst, uncovered, tree" branches: null behavior: default - diff --git a/docs/source/release-notes/3.7.0.rst b/docs/source/release-notes/3.7.0.rst index 36cb149..75fcca5 100644 --- a/docs/source/release-notes/3.7.0.rst +++ b/docs/source/release-notes/3.7.0.rst @@ -83,4 +83,3 @@ Features https://gitlab.com/pycqa/flake8/merge_requests/287 .. _GitLab!288: https://gitlab.com/pycqa/flake8/merge_requests/288 - diff --git a/setup.cfg b/setup.cfg index 45cf4cf..55b291e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,7 +59,7 @@ distutils.commands= flake8 = flake8.main.setuptools_command:Flake8 console_scripts = flake8 = flake8.main.cli:main -flake8.extension = +flake8.extension = F = flake8.plugins.pyflakes:FlakesChecker pycodestyle.ambiguous_identifier = pycodestyle:ambiguous_identifier pycodestyle.bare_except = pycodestyle:bare_except