-
Notifications
You must be signed in to change notification settings - Fork 448
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
Testing: Lint and test using Tox #4005
Conversation
1d3f867
to
d86471b
Compare
c428d99
to
1343cfe
Compare
Codecov Report
@@ Coverage Diff @@
## main #4005 +/- ##
=======================================
Coverage 91.61% 91.61%
=======================================
Files 77 77
Lines 5153 5153
=======================================
Hits 4721 4721
Misses 432 432
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
0b9abd5
to
fbd1b00
Compare
* Add tox >= 4.0 as a dev dependency * Add tox configuration to setup.cfg - I chose setup.cfg because pyproject.toml support in tox is awkward (tox-dev/tox#999) - Specified flake8 < 6.0.0 until we can get around to replacing type comments with type annotations. PyCQA/pyflakes#747 * Modify Makefile to use tox instead of running the commands directly * Update .gitignore for relevant new files and directories * Update requirements files - Newer tarball in freeze-requirements.sh because the older one was sometimes breaking in tox. * Set pylint configuration to ignore tests/legacy rather than manually excluding it A future commit will configure tox in Github actions.
Takes advantage of the multiple python versions now available. https://github.com/actions/setup-python/releases/tag/v4.4.0
Pylint fails on pydantic stuff if pydantic isn't installed Also reduce python version to 3.10
# Conflicts: # Makefile # pyproject.toml # setup.py
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 work!
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.
nice!
Configures tox for linting and unit testing and provides a GitHub workflow for running Tox.
Does not disable old linting and testing yet for the sake of comparison.
(CRAFT-1513)