Skip to content

Set up pre-commit#155

Merged
alexzorin merged 12 commits intomasterfrom
precommit
Mar 2, 2023
Merged

Set up pre-commit#155
alexzorin merged 12 commits intomasterfrom
precommit

Conversation

@bmw
Copy link
Copy Markdown
Member

@bmw bmw commented Mar 1, 2023

I think this is pretty nice. I've also been considering adding black and I'd personally really want this if we start using it.

I ran poetry lock to update things because while it shouldn't matter too much, I wanted to match the versions of flake8 and isort used with pre-commit and those in poetry.lock and the pinned version of isort didn't work.

Copy link
Copy Markdown
Collaborator

@alexzorin alexzorin left a comment

Choose a reason for hiding this comment

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

Works great. That pre-commit project is pretty cool. Just one documentation thing.

CONTRIBUTING.md Outdated
# (On Windows Powershell)
$ .\.venv\Script\activate
```
4) Optionally set up [pre-commit](https://pre-commit.com/)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think a short explanation about what this does would be helpful here.

@alexzorin alexzorin self-assigned this Mar 2, 2023
@bmw
Copy link
Copy Markdown
Member Author

bmw commented Mar 2, 2023

I also went ahead and set up pre-commit to just test src and test files for now. Sorry for the additional change, but testing everything is arguably overkill and that approach is likely to cause problems if we take it in the Certbot repo for the reasons being discussed at certbot/certbot#7909.

Thanks so much for all the reviews Alex.

@alexzorin alexzorin merged commit 5473e19 into master Mar 2, 2023
@alexzorin alexzorin deleted the precommit branch March 2, 2023 19:21
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.

2 participants