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

Remove unnecessary Option wrapper from some pyproject::Config fields #326

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

andersk
Copy link
Contributor

@andersk andersk commented Oct 4, 2022

For extend_exclude, ignore, and per_file_ignores, None has the same effect as Some(vec![]), so there’s no need to encode it separately.

This is not the case for exclude and select, so I’ve left those alone.

For extend_exclude, ignore, and per_file_ignores, None has the same
effect as Some(vec![]), so there’s no need to encode it separately.

This is not the case for exclude and select, so I’ve left those alone.

Signed-off-by: Anders Kaseorg <[email protected]>
@charliermarsh charliermarsh merged commit d1bcc91 into astral-sh:main Oct 4, 2022
@charliermarsh
Copy link
Member

Good stuff.

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.

2 participants