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 new regex example to --exclude docs #10903

Merged

Conversation

Nickedude
Copy link
Contributor

Description

Fixes #10250

Adds an example on how to use the OR-operator to combine two regular expressions in order to ignore multiple file or directory names.

Adds an example on how to use the OR-operator to combine two
regular expressions in order to ignore multiple file or directory
names.
@emmatyping
Copy link
Collaborator

I think in #10250 @JukkaL wanted multiple examples of how to use --exclude, but this is definitely an improvement and a longer set of examples can be done in a separate PR. (But we should make sure #10250 stays open)

@hauntsaninja hauntsaninja merged commit 2c876d5 into python:master Aug 1, 2021
@hauntsaninja
Copy link
Collaborator

@ethanhs I left #10250 open, but I'm curious what examples you'd like to see. The current docs have examples for files, directories, subpaths and now OR combination.

For the question of allowing passing exclude multiple times / allowing it to be a list, let's use #10310

@emmatyping
Copy link
Collaborator

@hauntsaninja I was referring to #10250 (comment)

@Nickedude Nickedude deleted the add_new_regex_example_to_exclude_docs branch August 1, 2021 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exclude multiple directories on mypy commandline: improve documentation
3 participants