Skip to content

Conversation

@hugovk
Copy link
Member

@hugovk hugovk commented Jan 16, 2024

The tox tool makes it easy to test by taking care of the virtualenv for you and installing dependencies (defined by a tests "extra"). It also makes it easy to test multiple Python versions.

For example:

# Test Python 3.12
tox -e py312

# Test Python 3.12 and pass an argument to pytest
tox -e py312 -- --stepwise

# Test all available Python versions in serial
tox

# Test all available Python versions in parallel
tox -p auto

This PR also:

  • Adds support for Python 3.13
  • Updates pyproject.toml to use standard metadata instead of tool-specific (flit), so we can add a tests extra to [project.optional-dependencies]
  • Adds simple pre-commit config for linting, and to the CI

@ambv ambv merged commit 67b7836 into python:main Mar 6, 2024
@hugovk hugovk deleted the add-tox branch March 6, 2024 16:59
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