-
Notifications
You must be signed in to change notification settings - Fork 178
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
Update pre-commit #222
Update pre-commit #222
Conversation
- repo: https://github.com/psf/black | ||
rev: 22.1.0 | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have this pre-commit hook but it seems that we don't declare black
as a dependency.
Should we provide this in requirements-dev.txt
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-commit installs its packages independently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes under a pre-commit environment. It's still not available for in the normal venv
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
Ok so we don't add black
to the dependencies because it's under the pre-commit.
I would say that we can remove flake8
and isort
from requirements-dev.txt
so that we don't have any conflict with the versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove isort
, but flake8
is used by the editor (like vim or vscode). Thinking about it, I think we can add black to get auto formatting in the IDE and not remove anything, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove
isort
, butflake8
is used by the editor (like vim or vscode). Thinking about it, I think we can add black to get auto formatting in the IDE and not remove anything, what do you think?
I think that's fine 👍
Was just wondering about the value of having those in requirements-dev.txt
and also in the pre-commit. In the safe-config-service we have on both (the disadvantage is that the versions need to be kept in sync) 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand. IMHO is just convenience
No description provided.