Skip to content

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

Merged
charliermarsh merged 1 commit into
astral-sh:mainfrom
andersk:pyproject-option
Oct 4, 2022
Merged

Remove unnecessary Option wrapper from some pyproject::Config fields#326
charliermarsh merged 1 commit into
astral-sh:mainfrom
andersk:pyproject-option

Conversation

@andersk
Copy link
Copy Markdown
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 <andersk@mit.edu>
@charliermarsh charliermarsh merged commit d1bcc91 into astral-sh:main Oct 4, 2022
@charliermarsh
Copy link
Copy Markdown
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