[pre-commit.ci] pre-commit suggestions (#10409)

* [pre-commit.ci] pre-commit suggestions

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0)
- [github.com/asottile/pyupgrade: v3.2.0 → v3.3.0](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.3.0)
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0)

* Fix flake8 ignore syntax

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* spacing

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
pre-commit-ci[bot]andGlenn Jocher authored and GitHub committed 2022-12-06 15:12:20 -08:00
1 parent 0a1fdcd8eb
commit 06243845b3
2 files changed
+13 -17

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ ci:
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0 rev: v4.4.0
hooks: hooks:
# - id: end-of-file-fixer # - id: end-of-file-fixer
- id: trailing-whitespace - id: trailing-whitespace
@@ -24,7 +24,7 @@ repos:
- id: check-docstring-first - id: check-docstring-first
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.2.0 rev: v3.3.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
name: Upgrade code name: Upgrade code
@@ -58,7 +58,7 @@ repos:
- id: yesqa - id: yesqa
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 5.0.4 rev: 6.0.0
hooks: hooks:
- id: flake8 - id: flake8
name: PEP8 name: PEP8
+10 -14
View File
@@ -6,7 +6,6 @@
license_file = LICENSE license_file = LICENSE
description_file = README.md description_file = README.md
[tool:pytest] [tool:pytest]
norecursedirs = norecursedirs =
.git .git
@@ -17,7 +16,6 @@ addopts =
--durations=25 --durations=25
--color=yes --color=yes
[flake8] [flake8]
max-line-length = 120 max-line-length = 120
exclude = .tox,*.egg,build,temp exclude = .tox,*.egg,build,temp
@@ -27,17 +25,16 @@ verbose = 2
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
format = pylint format = pylint
# see: https://www.flake8rules.com/ # see: https://www.flake8rules.com/
ignore = ignore = E731,F405,E402,F401,W504,E127,E231,E501,F403
E731 # Do not assign a lambda expression, use a def # E731: Do not assign a lambda expression, use a def
F405 # name may be undefined, or defined from star imports: module # F405: name may be undefined, or defined from star imports: module
E402 # module level import not at top of file # E402: module level import not at top of file
F401 # module imported but unused # F401: module imported but unused
W504 # line break after binary operator # W504: line break after binary operator
E127 # continuation line over-indented for visual indent # E127: continuation line over-indented for visual indent
E231 # missing whitespace after ‘,’, ‘;’, or ‘:’ # E231: missing whitespace after ‘,’, ‘;’, or ‘:’
E501 # line too long # E501: line too long
F403 # ‘from module import *’ used; unable to detect undefined names # F403: ‘from module import *’ used; unable to detect undefined names
[isort] [isort]
# https://pycqa.github.io/isort/docs/configuration/options.html # https://pycqa.github.io/isort/docs/configuration/options.html
@@ -45,7 +42,6 @@ line_length = 120
# see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html # see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
multi_line_output = 0 multi_line_output = 0
[yapf] [yapf]
based_on_style = pep8 based_on_style = pep8
spaces_before_comment = 2 spaces_before_comment = 2