diff --git a/README.md b/README.md index aeeeda3..bdf7e9d 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Just add this to your `.pre-commit-config.yaml` `flake8` check under config. You can also manually run this check (without flake8's `noqa` filtering) via -script entry-point (`pipx run flake8_errmsg `) or module entry-point +script entry-point (`pipx run flake8-errmsg `) or module entry-point (`python -m flake8_errmsg ` when installed). ## FAQ @@ -72,7 +72,7 @@ script entry-point (`pipx run flake8_errmsg `) or module entry-point Q: Why not look for `"".format()` too?
A: Tools like pyupgrade should help move to fstrings, so these should be rare. But it would likely be easy to add. -Q: Why Python 3.10 only?
A: This is a static checker and for developers. +Q: Why Python 3.10+ only?
A: This is a static checker and for developers. Developers and static checks should be on 3.10 already. And I was lazy and match statements are fantastic for this sort of thing. And the AST module changed in 3.8 anyway. diff --git a/pyproject.toml b/pyproject.toml index ff5568c..9207d84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,6 @@ classifiers = [ "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", - "Development Status :: 1 - Planning", "Development Status :: 4 - Beta", "Typing :: Typed", ] @@ -46,8 +45,8 @@ homepage = "https://github.com/henryiii/flake8-errmsg" [project.scripts] flake8-errmsg = "flake8_errmsg:main" -[[project.entry_points."flake8.extension"]] -EM = "flake8_errmsg:ErrMsgASTPlugin" +[project.entry_points."flake8.extension"] +EM = ["flake8_errmsg:ErrMsgASTPlugin"] [tool.hatch] diff --git a/src/flake8_errmsg/__init__.py b/src/flake8_errmsg/__init__.py index 4a9ba11..666b399 100644 --- a/src/flake8_errmsg/__init__.py +++ b/src/flake8_errmsg/__init__.py @@ -17,7 +17,7 @@ __all__ = ("__version__", "run_on_file", "main", "ErrMsgASTPlugin") -__version__ = "0.2.0" +__version__ = "0.2.1" class Flake8ASTErrorInfo(NamedTuple):