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

Support writing to pyproject.toml #660

Merged
merged 1 commit into from
Oct 26, 2024
Merged

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Oct 26, 2024

Many Python projects support a pyproject.toml file, so its important to support it as a special output file.

If pyproject.toml is passed, precli-init will update the file with a tool.precli section and its configuration options.

This change also prompts to overwrite existing files. In addition the enabled vs. disabled rules is now part of a list rather than option on each rule section. This makes it easier to customize since most users would prefer to maintain a list rather than updating each section.

Many Python projects support a pyproject.toml file, so its
important to support it as a special output file.

If pyproject.toml is passed, precli-init will update the file
with a tool.precli section and its configuration options.

This change also prompts to overwrite existing files. In addition
the enabled vs. disabled rules is now part of a list rather than
option on each rule section. This makes it easier to customize
since most users would prefer to maintain a list rather than
updating each section.

Signed-off-by: Eric Brown <[email protected]>
@ericwb ericwb merged commit fc9515b into securesauce:main Oct 26, 2024
20 checks passed
@ericwb ericwb deleted the pyproject branch October 26, 2024 01:49
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.

1 participant