Skip to content

Commit

Permalink
Tox use ruff (#864)
Browse files Browse the repository at this point in the history
* Tox: Use ruff

* Tox: Use ruff
  • Loading branch information
cclauss committed Sep 3, 2023
1 parent 00f9a21 commit eddb461
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
10 changes: 5 additions & 5 deletions Makefile
Expand Up @@ -34,11 +34,11 @@ clean-build:
@rm -fr dist/
@rm -fr *.egg-info

format fmt:
isort --recursive oauthlib tests
format fmt black:
black .

lint:
isort --recursive --check-only --diff oauthlib tests
lint ruff:
ruff .

test:
tox
Expand Down Expand Up @@ -81,4 +81,4 @@ dance:

.DEFAULT_GOAL := all
.PHONY: clean test bottle dance django flask requests
all: test bottle dance django flask requests
all: lint test bottle dance django flask requests
21 changes: 6 additions & 15 deletions tox.ini
@@ -1,6 +1,6 @@
# require tox>=4
[tox]
envlist = py38,py39,py310,py311,py312,pypy3,docs,readme,bandit,isort
envlist = py38,py39,py310,py311,py312,pypy3,docs,readme,ruff

[testenv]
deps=
Expand All @@ -9,7 +9,6 @@ commands=
pytest --cov=oauthlib tests/

# tox -e docs to mimic readthedocs build.
# as of today, RTD is using python3.7 and doesn't run "setup.py install"
[testenv:docs]
basepython=python3.11
skipsdist=True
Expand All @@ -28,16 +27,8 @@ allowlist_externals=echo
commands=
twine check .tox/.pkg/dist/*

[testenv:bandit]
basepython=python3.11
skipsdist=True
deps=bandit
commands=bandit -b bandit.json -r oauthlib/
allowlist_externals=bandit

[testenv:isort]
basepython = python3.8
usedevelop = false
deps = isort
changedir = {toxinidir}
commands = isort --recursive --check-only --diff oauthlib tests
[testenv:ruff]
deps=ruff
allowlist_externals=ruff
skip_install=true
commands=ruff .

0 comments on commit eddb461

Please sign in to comment.