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

tests: enable cache for pytest-ruff >= 0.3.0 #482

Merged
merged 4 commits into from Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Expand Up @@ -2,6 +2,7 @@ v3.0.4
======
* Fixed an issue with django.SafeString and other classes inheriting from
str having read-only attribute errors (#478) (+481)
* The test suite was made compatible with `pytest-ruff>=0.3.0`. (+482)

v3.0.3
======
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -35,7 +35,7 @@ JOB_COUNT := $(shell printf '%s' "$(JOB_FLAGS)" | sed -e 's/-j//')
DASH_J := $(shell echo -- $(JOB_FLAGS) -j$(nproc) | grep -o -e '-j[0-9]\+' | head -n 1)
NUM_JOBS := $(shell printf %s "$(DASH_J)" | sed -e 's/-j//')

TESTCMD ?= $(PYTEST) -p no:cacheprovier
TESTCMD ?= $(PYTEST)
BENCHMARKCMD ?= $(BENCHMARK)
TOXCMD ?= $(TOX) run-parallel --parallel-live
ifdef V
Expand Down Expand Up @@ -68,7 +68,7 @@ help::
.PHONY: help

test::
$(TESTCMD) $(flags)
$(TESTCMD) jsonpickle tests $(flags)
.PHONY: test

tox::
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Expand Up @@ -17,6 +17,7 @@ classifiers =
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: JavaScript
Operating System :: OS Independent
Topic :: Software Development :: Libraries :: Python Modules
Expand Down Expand Up @@ -47,7 +48,7 @@ testing =
pytest-checkdocs >= 1.2.3
pytest-cov
pytest-enabler >= 1.0.1
pytest-ruff != 0.3
pytest-ruff >= 0.2.1
Theelx marked this conversation as resolved.
Show resolved Hide resolved

# local
ecdsa
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -9,7 +9,7 @@ allowlist_externals =
passenv =
FORCE_COLOR
commands =
python3 -m pytest -p no:cacheprovider --cov --cov-append --cov-report=term-missing jsonpickle tests {posargs}
davvid marked this conversation as resolved.
Show resolved Hide resolved
python3 -m pytest --cov --cov-append --cov-report=term-missing jsonpickle tests {posargs}
depends =
{py36,py37,py38,py39,py310,py311,py312}: clean
report: py36,py37,py38,py39,py310,py311,py312
Expand Down