Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jl-wynen
Copy link
Member

We should also update the docs to clearly tell people to use pre-commit locally. Otherwise, this could be painful for some.

@jl-wynen jl-wynen requested a review from nvaytet January 16, 2023 09:23
Comment on lines +26 to +27
# The following packages are considered to be unsafe in a requirements file:
# setuptools
Copy link
Member

Choose a reason for hiding this comment

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

Where is this coming from?

Copy link
Member Author

Choose a reason for hiding this comment

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

pip-compile. I used it instead of pip-compile-multi this time because I only updated the one file. Note that the old file also didn't contain setuptools.

Copy link
Member

Choose a reason for hiding this comment

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

I don't see setuptools in the new files...

Copy link
Member Author

Choose a reason for hiding this comment

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

My guess is that setuptools would be included in the requirements but pip-compile decided to leave it out. So it left a comment explaining it. But pip-compile-multi does not leave the comment despite also not adding setuptools as a dependency.

toml
tox
yapf
pre-commit No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

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

Github is saying the newline at the end of the file was deleted. Do we want to be consistent with this and is there a tool we can add to the pre-commit?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I would say yes?
Would be good if we could have all our rules in a single place, so we don't have to update 10 repos whevever we add a new pre-commit check. But then we don't want to end up in the situation like the Azure pipeline templates which made it cumbersome to make changes to the rules...

@jl-wynen
Copy link
Member Author

@nvaytet Do you have more comments?

@jl-wynen jl-wynen merged commit 4ad3ef9 into main Jan 23, 2023
@jl-wynen jl-wynen deleted the pre-commit-in-ci branch January 23, 2023 08:45
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.

3 participants