Skip to content

Commit

Permalink
Add tox and ruff to dev dependencies and update testing instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
maribedran committed Sep 26, 2024
1 parent d0c13e0 commit befab77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions TESTING.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Testing
=======

First, install tox into your virtualenv::
First, install dev dependencies::

pip install --upgrade tox
poetry install --with dev

To run all tests, you'll need to install multiple Python interpreters. On a
modern Ubuntu distribution you can use ``add-apt-repository
Expand All @@ -21,3 +21,11 @@ Here's the OSX Homebrew command:

Finally, just run ``tox``!
If you want, you can test against a specific version like this: ``tox -e py312-pil``


Linting
-------

Run `ruff` to check linting::

ruff check
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ png = ["pypng"]
[tool.poetry.group.dev.dependencies]
pytest = {version = "*"}
pytest-cov = {version = "*"}
tox = {version = "*"}
ruff = {version = "*"}
docutils = "^0.21.2"
zest-releaser = {extras = ["recommended"], version = "^9.2.0"}

Expand Down

0 comments on commit befab77

Please sign in to comment.