Skip to content

Commit befab77

Browse files
committed
Add tox and ruff to dev dependencies and update testing instructions
1 parent d0c13e0 commit befab77

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

TESTING.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Testing
22
=======
33

4-
First, install tox into your virtualenv::
4+
First, install dev dependencies::
55

6-
pip install --upgrade tox
6+
poetry install --with dev
77

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

2222
Finally, just run ``tox``!
2323
If you want, you can test against a specific version like this: ``tox -e py312-pil``
24+
25+
26+
Linting
27+
-------
28+
29+
Run `ruff` to check linting::
30+
31+
ruff check

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ png = ["pypng"]
5252
[tool.poetry.group.dev.dependencies]
5353
pytest = {version = "*"}
5454
pytest-cov = {version = "*"}
55+
tox = {version = "*"}
56+
ruff = {version = "*"}
5557
docutils = "^0.21.2"
5658
zest-releaser = {extras = ["recommended"], version = "^9.2.0"}
5759

0 commit comments

Comments
 (0)