Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#859)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.2.0](pre-commit/pre-commit-hooks@v4.0.1...v4.2.0)
- [github.com/pycqa/flake8: 3.9.2 → 4.0.1](PyCQA/flake8@3.9.2...4.0.1)
- [github.com/asottile/pyupgrade: v2.29.0 → v2.32.0](asottile/pyupgrade@v2.29.0...v2.32.0)

* Fix pre-commit not installing flake8

This commit address the comments by @asottile in
pre-commit-ci/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 <fepegar@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and fepegar committed Apr 11, 2022
1 parent 2972958 commit af0aab2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .pre-commit-config.yaml
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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']

0 comments on commit af0aab2

Please sign in to comment.