From ae915fbf71dac360606639b30f4559d72c9cd138 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 2 Sep 2023 16:12:13 +0200 Subject: [PATCH 1/2] Tox: Use ruff --- Makefile | 10 +++++----- tox.ini | 24 ++++++++++-------------- 2 files changed, 15 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 2d2e1ed7..28081659 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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 diff --git a/tox.ini b/tox.ini index 229dd9df..1a3c531f 100644 --- a/tox.ini +++ b/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= @@ -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 @@ -28,16 +27,13 @@ allowlist_externals=echo commands= twine check .tox/.pkg/dist/* -[testenv:bandit] +[testenv:ruff] 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 +# skipsdist=True +deps = + ruff +# changedir = {toxinidir} +skip_install = true +commands = + {envpython} -m ruff +# allowlist_externals=make From ee3f8b53236ad2fb03af7c17dc195604a4347762 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 3 Sep 2023 18:10:28 +0200 Subject: [PATCH 2/2] Tox: Use ruff --- tox.ini | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tox.ini b/tox.ini index 1a3c531f..fb476a12 100644 --- a/tox.ini +++ b/tox.ini @@ -28,12 +28,7 @@ commands= twine check .tox/.pkg/dist/* [testenv:ruff] -basepython=python3.11 -# skipsdist=True -deps = - ruff -# changedir = {toxinidir} -skip_install = true -commands = - {envpython} -m ruff -# allowlist_externals=make +deps=ruff +allowlist_externals=ruff +skip_install=true +commands=ruff . 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