-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Bug: slotscheck pre-commit misconfiguration #3251
Labels
Bug 🐛
This is something that is not working as expected
Comments
:D oh dear |
ariebovenberg
added a commit
to ariebovenberg/litestar
that referenced
this issue
Mar 27, 2024
peterschutt
added a commit
that referenced
this issue
Mar 28, 2024
This PR moves running slotscheck from within pre-commit to its own job in ci (same as we've done with other tools that require the configured environment to run). This partially fixes an issue identified in #3251 where the `litestar` package was inadvertently excluded from this check due to an incorrect regex pattern. Applies fixes for issues identified by the tool. Co-authored-by: Arie Bovenberg <a.c.bovenberg@gmail.com>
peterschutt
added a commit
that referenced
this issue
Mar 28, 2024
This PR moves running slotscheck from within pre-commit to its own job in ci (same as we've done with other tools that require the configured environment to run). This partially fixes an issue identified in #3251 where the `litestar` package was inadvertently excluded from this check due to an incorrect regex pattern. Applies fixes for issues identified by the tool. Co-authored-by: Arie Bovenberg <a.c.bovenberg@gmail.com>
This has been fixed in #3275, closed. |
cofin
pushed a commit
that referenced
this issue
Apr 1, 2024
This PR moves running slotscheck from within pre-commit to its own job in ci (same as we've done with other tools that require the configured environment to run). This partially fixes an issue identified in #3251 where the `litestar` package was inadvertently excluded from this check due to an incorrect regex pattern. Applies fixes for issues identified by the tool. Co-authored-by: Arie Bovenberg <a.c.bovenberg@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
👋 Hi there @Goldziher. I'm happy to see you're still using slotscheck, but I noticed that the pre-commit
exclude
option is configured so that it isn't run on most files:8 modules scanned is way too few, so I had a look. It took me a while to realize that the pre-commit option
exclude: "test_*|docs|.github"
regex matchestest
andlitestar
contains the stringtest
😬.It also looks like the
flake8-dunder-all
pre-commit would have the same issue 👀. Might be worth scanning any other tooling you have set up to ignore things with "test" in the name 😄I'll have a look now and, if the change is small, submit a PR shortly.
URL to code causing the issue
No response
MCVE
No response
Steps to reproduce
No response
Screenshots
No response
Logs
No response
Litestar Version
main
Platform
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: