« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
GitHub · Extracted in 1041 ms

precommit: enable `validate-pyproject` by Borda · Pull Request #1921 · gitpython-developers/GitPython

Source: https://github.com/gitpython-developers/GitPython/pull/1921

Repository navigation

precommit: enable validate-pyproject - #1921


Merged
Byron merged 2 commits into gitpython-developers:main from Borda:precommit/validate-pyproject May 31, 2024
Merged

precommit: enable validate-pyproject #1921 Byron merged 2 commits into gitpython-developers:main from Borda:precommit/validate-pyproject

Conversation

Borda commented May 30, 2024



Copy link Copy Markdown
Contributor

let's formalize suggestion from #1888 (comment)

precommit: enable validate-pyproject 2ce9675 Borda mentioned this pull request May 30, 2024 lint: add typos check #1888 Merged EliahKagan reviewed May 30, 2024
View reviewed changes

EliahKagan left a comment



Copy link Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Thanks--this is a good idea!

This edits .pre-commit-config.yaml in such a way that the file no longer has a trailing newline character. Although we have a pre-commit hook that scans YAML, it apparently doesn't check for that. If the changes from #1920 are merged--even with my suggested modifications, since this file is outside of test/fixtures--then they should catch it (though if you are aware of more comprehensive YAML linters that should be used instead of, or in addition, to the current one, then I think that could be a valuable, though separate, improvement).

Leaving out the newline here is minor, and there is nothing else that should change here. So it should actually be okay to merge this as it stands. However, some ways of integrating both this and #1920 could then result in a lint failure on the main branch even if both PR branches are green when merged. (Also, regardless of what happens with #1920 , it is slightly better here to have the trailing newline.) So I think it would be even better to add the trailing newline here.

Byron reviewed May 31, 2024
View reviewed changes
Add missing newline in prec-commit-config.yaml 882425d
Just to be sure the coming linting won't be disturbed by that.
Byron approved these changes May 31, 2024
View reviewed changes

Byron left a comment



Copy link Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

Thanks a lot for your help!

Byron merged commit 1e1a858 into gitpython-developers : main May 31, 2024 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

3 participants