-
Notifications
You must be signed in to change notification settings - Fork 216
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
Pre-commit tests are skipped #860
Comments
In general pre-commit tests are assigned to certain files or file types.
They are skipped when none of these files have changed.
What happened here was that the tests were skipped even though some of the
files *were* changed. The folders listed in the `files` key regex for both
yapf and prospector are recognized but single `.py` files seem not to be.
I will investigate how to add a single file to be checked.
…On Thu, Oct 26, 2017, 17:15 szoupanos ***@***.***> wrote:
Assigned #860 <#860> to
@DropD </~https://github.com/dropd>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#860 (comment)>, or mute
the thread
</~https://github.com/notifications/unsubscribe-auth/ABMqBNiBZtOwIiC5c6Vmd-VEPLL0AAzAks5swKILgaJpZM4QHvmI>
.
|
seems like it's my fault - sorry about that! I wanted to split the string over multiple lines and I thought it worked, but when I change it back to a single line, it checks also the single .py files again. |
If one can believe this post on stackoverflow, then the problem might be that with An alternative way of still splitting the lines that works for me is
Not the most pretty solution, but still a lot better than having everything on one line. Note that I also removed the brackets, since they didn't seem to be necessary for the cases I tested (both folders and single files). Let me know whether it works for you and feel free to change it in your next pull request. |
I have the following .pre-commit-config.yaml
and for some reason the yap & the prospector tests are skipped (even if my file is in the corresponding lists)
E.g.
The text was updated successfully, but these errors were encountered: