-
Notifications
You must be signed in to change notification settings - Fork 55
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
Remove pycodestyle, add black, add numerous pre-commit checks. #115
Conversation
@@ -6,8 +6,10 @@ | |||
|
|||
from lark.visitors import Transformer, Discard, _DiscardType | |||
|
|||
HEREDOC_PATTERN = re.compile(r'<<([a-zA-Z][a-zA-Z0-9._-]+)\n((.|\n)*?)\n\s*\1', re.S) | |||
HEREDOC_TRIM_PATTERN = re.compile(r'<<-([a-zA-Z][a-zA-Z0-9._-]+)\n((.|\n)*?)\n\s*\1', re.S) | |||
HEREDOC_PATTERN = re.compile(r"<<([a-zA-Z][a-zA-Z0-9._-]+)\n((.|\n)*?)\n\s*\1", re.S) |
Check failure
Code scanning / CodeQL
Inefficient regular expression
HEREDOC_TRIM_PATTERN = re.compile(r'<<-([a-zA-Z][a-zA-Z0-9._-]+)\n((.|\n)*?)\n\s*\1', re.S) | ||
HEREDOC_PATTERN = re.compile(r"<<([a-zA-Z][a-zA-Z0-9._-]+)\n((.|\n)*?)\n\s*\1", re.S) | ||
HEREDOC_TRIM_PATTERN = re.compile( | ||
r"<<-([a-zA-Z][a-zA-Z0-9._-]+)\n((.|\n)*?)\n\s*\1", re.S |
Check failure
Code scanning / CodeQL
Inefficient regular expression
README.md
Outdated
2. Create a pull request. Explain why you want to make the change and what it’s for. | ||
|
||
1. For any sizable change, first open a GitHub issue to discuss your idea. | ||
1. Create a pull request. Explain why you want to make the change and what it’s for. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Create a pull request. Explain why you want to make the change and what it’s for. | |
2. Create a pull request. Explain why you want to make the change and what it’s for. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix it in a different way. Changed it to unordered list, because mdformat fails on this case.
Add pre-commit as a replacement for tox linting: