Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: corrected entrypoint #2

Merged
merged 2 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ 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 <files>`) or module entry-point
script entry-point (`pipx run flake8-errmsg <files>`) or module entry-point
(`python -m flake8_errmsg <files>` when installed).

## FAQ

Q: Why not look for `"".format()` too? <br/> 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? <br/> A: This is a static checker and for developers.
Q: Why Python 3.10+ only? <br/> 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.
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion src/flake8_errmsg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

__all__ = ("__version__", "run_on_file", "main", "ErrMsgASTPlugin")

__version__ = "0.2.0"
__version__ = "0.2.1"


class Flake8ASTErrorInfo(NamedTuple):
Expand Down