-
Notifications
You must be signed in to change notification settings - Fork 30
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
Pre-commit config, linting, and type hints #13
Conversation
Sure that would be nice. And it would be actually great if GHA would be used for all the CI related activities. |
2f669cb
to
a8af98b
Compare
.github/workflows/test.yml
Outdated
run: pip install -e . | ||
- name: Run tests | ||
run: | | ||
pytest --cov=pytest_diff --verbose --assert=plain |
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.
Aren't we now running the tests with both Travis and GHA?
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've never used Travis. How is that configured? Don't see any traces of it in the repo or elsewhere 😛
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.
39488bc
to
939b6b7
Compare
Workflow now seems to work (see here) 🎉 I removed tests from the flake8-ignore list, added mypy, and added configs for the flake8-packages used 🙂 UPDATE: And I removed python 3.10 for now - there was an error there that I think might be something we can fix in #14 instead 👍 |
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.
Great stuff 💪
Thank you!
Hi @jerry-git 🙂
I'm going to sit down and have a go at writing the implementation suggested in #11 to see if it works.
I noticed that there was a pre-commit config in the project but that it maybe wasn't fully functional, so I've updated it (let me know if you prefer to remove some of the hooks I've added), run it on the project, and added type hints to the project. Hope that's something you want.
Opening this as an initial PR so it doesn't affect the diff for the next PR(s) 🙂
If you want, I could also add a linting workflow and/or test workflow to the project to run on pull-requests