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

Patch documentation #4903

Merged
merged 2 commits into from Oct 22, 2021
Merged

Patch documentation #4903

merged 2 commits into from Oct 22, 2021

Conversation

joeldierkes
Copy link
Contributor

Api: Enhance Documentation

Documentation: Return a non-zero exit code for modified header

If a header in a python file is modified, the tools/add_header script with the
dry-run argument will now return a non-zero exit code. This means that
tools/add_header can be used as a pre-commit check or inside the CI/CD.

@bziemons
Copy link
Member

Hi! My understanding of dry runs is that they succeed (exit code 0), if everything would run fine. Instead of this change, I would suggest adding a --check option that exits with the proposed behavior

If a header in a python file is modified, the `tools/add_header` script with the
`--check` argument will now return a non-zero exit code. This means that
`tools/add_header` can be used as a pre-commit check or inside the CI/CD.
@joeldierkes
Copy link
Contributor Author

Good idea!

@bari12 bari12 merged commit 188311f into rucio:master Oct 22, 2021
bari12 pushed a commit that referenced this pull request Oct 22, 2021
* Api: Enhance documentation

* Documentation: Return a non-zero exit code for modified header

If a header in a python file is modified, the `tools/add_header` script with the
`--check` argument will now return a non-zero exit code. This means that
`tools/add_header` can be used as a pre-commit check or inside the CI/CD.
@joeldierkes joeldierkes deleted the patch-documentation branch November 1, 2021 09:26
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.

None yet

4 participants