Skip to content

Sync non-zero exit on fix #273

@enadeau

Description

@enadeau

Is your feature request related to a problem? Please describe.
There is no way to tell if the sync command made some changes or not. This makes it hard to run the command in CI and fail the job if the project is not in sync.

Describe the solution you'd like
Add a flag like --exit-non-zero-on-fix to the sync command to fail with non zero exit code if some changed occurred while running the command.

Describe alternatives you've considered
The check commands seems like the command that should be used for that but it does not complain if I remove one of the component from the main pyproject file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions