Skip to content

Commit

Permalink
Add upper limit to pyflake's version <3.0 (#186)
Browse files Browse the repository at this point in the history
The latest pyflake version removed handling of python 2.x ``# type:`` comments.
It would be very convenient to have a last release that support it in autoflake. 

As the dependency was not upper limited none of the current release of autoflake handle's 2.X style typing.
  • Loading branch information
psasselum committed Nov 24, 2022
1 parent 9a10a30 commit 0152be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Expand Up @@ -17,7 +17,7 @@ classifiers = [
keywords = ["clean", "fix", "automatic", "unused", "import"]
urls = { Homepage = "https://www.github.com/PyCQA/autoflake" }
requires-python = ">=3.7"
dependencies = ["pyflakes>=1.1.0", "tomli>=2.0.1;python_version<'3.11'"]
dependencies = ["pyflakes>=1.1.0,<3", "tomli>=2.0.1;python_version<'3.11'"]
dynamic = ["version"]

[project.readme]
Expand Down

0 comments on commit 0152be5

Please sign in to comment.