Skip to content

Commit eddb461

Browse files
authored
Tox use ruff (#864)
* Tox: Use ruff * Tox: Use ruff
1 parent 00f9a21 commit eddb461

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ clean-build:
3434
@rm -fr dist/
3535
@rm -fr *.egg-info
3636

37-
format fmt:
38-
isort --recursive oauthlib tests
37+
format fmt black:
38+
black .
3939

40-
lint:
41-
isort --recursive --check-only --diff oauthlib tests
40+
lint ruff:
41+
ruff .
4242

4343
test:
4444
tox
@@ -81,4 +81,4 @@ dance:
8181

8282
.DEFAULT_GOAL := all
8383
.PHONY: clean test bottle dance django flask requests
84-
all: test bottle dance django flask requests
84+
all: lint test bottle dance django flask requests

tox.ini

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# require tox>=4
22
[tox]
3-
envlist = py38,py39,py310,py311,py312,pypy3,docs,readme,bandit,isort
3+
envlist = py38,py39,py310,py311,py312,pypy3,docs,readme,ruff
44

55
[testenv]
66
deps=
@@ -9,7 +9,6 @@ commands=
99
pytest --cov=oauthlib tests/
1010

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

31-
[testenv:bandit]
32-
basepython=python3.11
33-
skipsdist=True
34-
deps=bandit
35-
commands=bandit -b bandit.json -r oauthlib/
36-
allowlist_externals=bandit
37-
38-
[testenv:isort]
39-
basepython = python3.8
40-
usedevelop = false
41-
deps = isort
42-
changedir = {toxinidir}
43-
commands = isort --recursive --check-only --diff oauthlib tests
30+
[testenv:ruff]
31+
deps=ruff
32+
allowlist_externals=ruff
33+
skip_install=true
34+
commands=ruff .

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy