Skip to content

Commit

Permalink
Merge pull request Tecnativa#350 from ap-wtioit/main-fix_pre_commit
Browse files Browse the repository at this point in the history
[FIX] pre-commit flake8 needs importlib-metadata<5.0.0
  • Loading branch information
pedrobaeza authored Oct 5, 2022
2 parents dc409b2 + 628a9ca commit efe18dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
rev: 3.8.3
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==20.1.4]
additional_dependencies: ["flake8-bugbear==20.1.4", "importlib-metadata<5.0.0"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.1.2
hooks:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ repos:
- id: flake8
name: flake8 except __init__.py
exclude: /__init__\.py$
additional_dependencies: ["flake8-bugbear==20.1.4"]
additional_dependencies: ["flake8-bugbear==20.1.4", "importlib-metadata<5.0.0"]
- id: flake8
name: flake8 only __init__.py
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py
files: /__init__\.py$
additional_dependencies: ["flake8-bugbear==20.1.4"]
additional_dependencies: ["flake8-bugbear==20.1.4", "importlib-metadata<5.0.0"]
- repo: https://github.com/pycqa/pylint
rev: v2.11.1
hooks:
Expand Down

0 comments on commit efe18dd

Please sign in to comment.