Conditionally install flake8-bugbear
@@ -8,7 +8,7 @@ repos:
rev: 3.7.4
hooks:
- id: flake8
- additional_dependencies: ["flake8-bugbear==18.8.0"]
+ additional_dependencies: ['flake8-bugbear==18.8.0; python_version >= "3.5"']
- repo: https://github.com/asottile/blacken-docs
rev: v0.3.0
hooks:
