Skip to content

Commit 09e817e

Browse files
authored
Silent B028 from flake8-bugbear (#55)
* Update pre-commit-config.yaml * Ignore flake8 B028 in tox.ini
1 parent 94981cf commit 09e817e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default_stages:
77
minimum_pre_commit_version: 2.9.0
88
repos:
99
- repo: https://github.com/pre-commit/mirrors-mypy
10-
rev: v1.0.0
10+
rev: v1.0.1
1111
hooks:
1212
- id: mypy
1313
additional_dependencies: [numpy==1.20.0, scipy>=1.6.0]
@@ -28,7 +28,7 @@ repos:
2828
- id: yesqa
2929
additional_dependencies: [flake8-tidy-imports, flake8-docstrings, flake8-rst-docstrings, flake8-comprehensions, flake8-bugbear, flake8-logging-format, flake8-blind-except, flake8-builtins, flake8-pytest-style, flake8-string-format]
3030
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
31-
rev: v2.6.0
31+
rev: v2.7.0
3232
hooks:
3333
- id: pretty-format-yaml
3434
args: [--autofix, --indent, '4', --preserve-quotes]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ per-file-ignores =
88
# D104 Missing docstring in magic method
99
# F401 ... imported but unused
1010
# B902 blind except Exception: statement
11-
ignore = D100,D105,D107,RST201,RST203,RST301,RST306,E203
11+
ignore = D100,D105,D107,RST201,RST203,RST301,RST306,E203,B028
1212
# D100 D100 Missing docstring in public module
1313
# D107 Missing docstring in __init__
1414
# RST201 Block quote ends without a blank line; unexpected unindent.

0 commit comments

Comments
 (0)