Skip to content
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

Add pyi file support to .pre-commit-hooks.yaml #1875

Merged
merged 1 commit into from Dec 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Expand Up @@ -8,8 +8,9 @@ repos:
name: black
language: system
entry: black
minimum_pre_commit_version: 2.9.0
Copy link
Contributor

Choose a reason for hiding this comment

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

2.9.2 would be ever so slightly better -- there was some breaking in 2.9.0-flat related to types_or

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reviewing and suggesting this. Updated in #1895.

require_serial: true
types: [python]
types_or: [python, pyi]

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-hooks.yaml
Expand Up @@ -4,5 +4,6 @@
entry: black
language: python
language_version: python3
jdufresne marked this conversation as resolved.
Show resolved Hide resolved
minimum_pre_commit_version: 2.9.0
require_serial: true
types: [python]
types_or: [python, pyi]