Skip to content

Commit

Permalink
lint: Fixes the lint job
Browse files Browse the repository at this point in the history
flake8 released version 5.0.0. Because of this, pyproject-flake8
is failing because a class it was using from flake8 no longer exists,
resulting in the following error:

AttributeError: module 'flake8.options.config' has no attribute 'ConfigFileFinder'

This commit can be reversed once this issue is resolved:
csachs/pyproject-flake8#13
  • Loading branch information
claudiubelu committed Aug 3, 2022
1 parent ce5b660 commit f5fd502
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ commands =
isort {[vars]all_path}
black {[vars]all_path}

# TODO: remove the flake8 constraint after this issue is resolved:
# https://github.com/csachs/pyproject-flake8
[testenv:lint]
description = Check code against coding style standards
deps =
black
flake8
flake8 < 5.0.0
flake8-docstrings
flake8-copyright
flake8-builtins
Expand Down

0 comments on commit f5fd502

Please sign in to comment.