From aabaf1d16061eb1b1d679ff7e615bfb1b441fd5a Mon Sep 17 00:00:00 2001 From: Ryan Downing <26515643+r-downing@users.noreply.github.com> Date: Sun, 26 Nov 2023 20:30:52 -0500 Subject: [PATCH] add flake8 w/ bugbear to pre-commit config (#427) * add flake8 w/ bugbear to pre-commit config * check the other files in the tests subdir, just not the bXX.py files with examples of bad code --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4d2716..0efee95 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,3 +13,10 @@ repos: - id: black args: - --preview + + - repo: https://github.com/pycqa/flake8 + rev: 6.1.0 + hooks: + - id: flake8 + additional_dependencies: [flake8-bugbear] + exclude: ^tests/b.*