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

86: pre-commit runs on all files #101

Merged
merged 8 commits into from
Nov 11, 2023

Conversation

John-Sharples
Copy link
Contributor

@John-Sharples John-Sharples commented Nov 9, 2023

This PR change pre-commit workflow to run on all files, fixing issue where no-files were scanned in PR. The facilitate this change:

Closes #86

Copy link
Collaborator

@aidanjgriffiths aidanjgriffiths left a comment

Choose a reason for hiding this comment

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

Looks good @John-Sharples, I've left a few suggestions.

Another suggestion would be to make the pre-commit config either use the local dev env or using a pre-commit env and making sure to keep dev and pre-commit deps at the same version. The former works quite well in my experience but we will need to add isort to the dev deps in pyproject.toml

.github/workflows/run-pre-commit.yml Outdated Show resolved Hide resolved
.github/workflows/run-pre-commit.yml Outdated Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
tennlee and others added 4 commits November 11, 2023 11:03
Co-authored-by: Aidan Griffiths <[email protected]>
Signed-off-by: tennlee <[email protected]>
Co-authored-by: Aidan Griffiths <[email protected]>
Signed-off-by: tennlee <[email protected]>
Co-authored-by: Aidan Griffiths <[email protected]>
Signed-off-by: tennlee <[email protected]>
@tennlee tennlee merged commit 9515ec1 into nci:develop Nov 11, 2023
3 of 4 checks passed
tennlee added a commit that referenced this pull request Jan 19, 2024
* 86: pre-commit runs on all files

* 86: run pre-commit on push

* 86: update pylint version

* 86: pylint version and scoring >9.8

* Update .github/workflows/run-pre-commit.yml

Co-authored-by: Aidan Griffiths <[email protected]>
Signed-off-by: tennlee <[email protected]>

* Update .github/workflows/run-pre-commit.yml

Co-authored-by: Aidan Griffiths <[email protected]>
Signed-off-by: tennlee <[email protected]>

* Update docs/conf.py

Co-authored-by: Aidan Griffiths <[email protected]>
Signed-off-by: tennlee <[email protected]>

---------

Signed-off-by: tennlee <[email protected]>
Co-authored-by: tennlee <[email protected]>
Co-authored-by: Aidan Griffiths <[email protected]>
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.

Make pre-commit linters scan all files.
3 participants