Skip to content
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

Switch to tox 4 #1020

Merged
merged 2 commits into from Apr 13, 2023
Merged

Switch to tox 4 #1020

merged 2 commits into from Apr 13, 2023

Conversation

mportesdev
Copy link
Contributor

This PR proposes a few adjustments to achieve compatibility with tox 4.

Update tox.ini to work with tox 4

  • remove skipsdist = True (tox 4 will not install bandit with this setting, not even in editable mode for environments where usedevelop = True is set), add skip_install = true to the pep8 job
  • remove requires = tox<4
  • use multi-line list for passenv
  • add the - mark to ignore pylint exit code in the pep8 job - although this mark is already present in [testenv:pylint], tox 4 ignores it when using the {[testenv:pylint]commands} substitution

Use the tox run command in GitHub Actions

In tox 4, environments should always be specified using the -e flag to the run subcommand. https://tox.wiki/en/4.4.11/upgrading.html#updating-usage-with-e

- remove `skipsdist = True` (tox 4 will not install bandit with this setting, not even in editable mode for environments where `usedevelop = True` is set), add `skip_install = true` to the pep8 job
- remove `requires = tox<4`
- use multi-line list for `passenv`
- add the `-` mark to ignore pylint exit code in the pep8 job - although this mark is already present in `[testenv:pylint]`, tox 4 ignores it when using the `{[testenv:pylint]commands}` substitution
In tox 4, environments should always be specified using the -e flag to the `run` subcommand. https://tox.wiki/en/4.4.11/upgrading.html#updating-usage-with-e
Copy link
Member

@ericwb ericwb left a comment

Choose a reason for hiding this comment

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

LGTM

@ericwb ericwb merged commit 0342c33 into PyCQA:main Apr 13, 2023
13 checks passed
@mportesdev mportesdev deleted the tox_4 branch April 13, 2023 17:04
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.

None yet

2 participants