From af0aab216a0b37152ddf84b5120c39703c1d5204 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Apr 2022 22:17:30 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.2.0) - [github.com/pycqa/flake8: 3.9.2 → 4.0.1](https://github.com/pycqa/flake8/compare/3.9.2...4.0.1) - [github.com/asottile/pyupgrade: v2.29.0 → v2.32.0](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.32.0) * Fix pre-commit not installing flake8 This commit address the comments by @asottile in https://github.com/pre-commit-ci/issues/issues/118. Thanks, @asottile! Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Fernando Pérez-García --- .pre-commit-config.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4c337dcbe..cbe37d398 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.0.1 + rev: v4.2.0 hooks: - id: check-ast # Simply check whether the files parse as valid python - id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems @@ -19,25 +19,20 @@ repos: - id: file-contents-sorter # Sort the lines in specified files files: .*requirements.*\.txt$ - repo: https://github.com/pycqa/flake8 - rev: 3.9.2 + rev: 4.0.1 hooks: - id: flake8 additional_dependencies: [ flake8-blind-except, # check for blind, catch-all "except:" statements - flake8-breakpoint, # check forgotten breakpoints flake8-broken-line, # forbid backslashes for line breaks flake8-bugbear, # find likely bugs and design problems flake8-builtins, # check for python builtins being used as variables or parameters flake8-class-newline, # lint for newline after class definitions - flake8-comprehensions, # write better list/set/dict comprehensions - flake8-debugger, # check for pdb;idbp imports and set traces flake8-fixme, # check for FIXME, TODO and other temporary developer notes flake8-logging-format, # validate (lack of) logging format strings flake8-markdown, # lint Python code blocks in Markdown files using flake8 flake8-pep3101, # check for old string formatting - flake8-polyfill, # help support Flake8 2.x and 3.x simultaneously - flake8-print, # check for Print statements - flake8-type-annotations, # enforce consistent type annotation styles + flake8-print, # check for print statements flake8-use-fstring, # enforce use of f-string flake8-2020, # check for misuse of `sys.version` or `sys.version_info` pep8-naming, # check PEP-8 naming conventions @@ -54,7 +49,7 @@ repos: - id: rst-backticks # detect common mistake of using single backticks when writing rst # - id: rst-inline-touching-normal # detect mistake of inline code touching normal text in rst - repo: https://github.com/asottile/pyupgrade - rev: v2.29.0 + rev: v2.32.0 hooks: - id: pyupgrade args: ['--py36-plus']