mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add types to pre-commit
This commit is contained in:
parent
fa536a8693
commit
327ed924a3
62 changed files with 911 additions and 411 deletions
|
|
@ -25,6 +25,10 @@ exclude_lines =
|
|||
^\s*return NotImplemented\b
|
||||
^\s*raise$
|
||||
|
||||
# Ignore typing-related things
|
||||
^if (False|TYPE_CHECKING):
|
||||
: \.\.\.$
|
||||
|
||||
# Don't complain if non-runnable code isn't run:
|
||||
^if __name__ == ['"]__main__['"]:$
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue