Skip to content

Don't use identify if not necessary#3725

Closed
vries wants to merge 2 commits into
pre-commit:mainfrom
vries:dont-use-identify-if-not-necessary
Closed

Don't use identify if not necessary#3725
vries wants to merge 2 commits into
pre-commit:mainfrom
vries:dont-use-identify-if-not-necessary

Conversation

@vries

@vries vries commented Jul 21, 2026

Copy link
Copy Markdown

If we're not filtering on types, there's no need to call identify.

vries added 2 commits July 21, 2026 15:18
Add a test in tests/commands/run_test.py to check the case that
types, types_or and exclude_types are all empty.
If types, types_or and exclude_types are all empty, there's no need to call
identify.
@asottile

Copy link
Copy Markdown
Member

seems like unnecessary complexity and unlikely to improve anything. please start with an issue explaining next time

@vries

vries commented Jul 22, 2026

Copy link
Copy Markdown
Author

seems like unnecessary complexity and unlikely to improve anything. please start with an issue explaining next time

I've filed an issue ( #3729 ).

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