Skip to content

Comments

Detect single backticks at the start of the line#24

Merged
asottile merged 5 commits intopre-commit:masterfrom
mik-laj:patch-1
Jan 11, 2020
Merged

Detect single backticks at the start of the line#24
asottile merged 5 commits intopre-commit:masterfrom
mik-laj:patch-1

Conversation

@mik-laj
Copy link
Contributor

@mik-laj mik-laj commented Jan 11, 2020

Hello

I am working on the Apache Airflow project and one hook did not detect one error, so I am sending the patch.
Screenshot 2020-01-11 at 18 04 56

Best regards,
Kamil

@asottile
Copy link
Member

awesome -- thanks for the patch! can you add a quick test to https://github.com/pre-commit/pygrep-hooks/blob/master/tests/hooks_test.py demoing this change?

@mik-laj
Copy link
Contributor Author

mik-laj commented Jan 11, 2020

@asottile i added tests.

r" `JPdzQ2QqF_AQl=t]`",
r" `97P}j:' :MJhH,JnFCVlE\"pX cM/j6!s:=69Wf>Yc[5mb9z)W?Hb5m{Lt,)f,&x<mr'C3NBDMnr6<'|-b6`>",
r" `@ ~7JyWy/V9V<th:}y.#``S",
r" `- 3]1f{I**4Q).6}/#BrEPW.2^v]4n6oia8Xu_fOgh:q_E9Qxp}n:p T)*EId99,[7w^&AX(uQ_7~$)DX*z=t].qLh+ON>sMOt}`",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not interested in this test, please remove it -- tests should be obvious from reading what they are testing -- this one is nonsense

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile asottile merged commit 1f48caa into pre-commit:master Jan 11, 2020
@asottile
Copy link
Member

thanks! this has been released as v1.4.4 🎉

@mik-laj
Copy link
Contributor Author

mik-laj commented Jan 11, 2020

What is the ETA for v1.4.4? I would like to update in my project.

@asottile
Copy link
Member

negative four minutes ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants