From a26f6244e3ccabb9a2209ca6c8a91bb9db878f1d Mon Sep 17 00:00:00 2001 From: Simon Blanchard Date: Tue, 13 Jun 2023 13:01:24 +0800 Subject: [PATCH] add lint target in Makefile (#1940) * add lint target in Makefile add black and ruff to dev reqs * remove black and ruff from 3.6 reqs as ruff is not compatible with 3.6 * remove black and ruff - seems to be causing tests to fail --- Makefile | 4 ++++ dev-requirements-36.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3ad247c..e6a43525 100644 --- a/Makefile +++ b/Makefile @@ -19,3 +19,7 @@ force_release: clean git push --tags python setup.py sdist bdist_wheel twine upload dist/* + +lint: + @ black --check --skip-string-normalization --line-length 120 rq tests + @ ruff check --show-source rq tests diff --git a/dev-requirements-36.txt b/dev-requirements-36.txt index 1bf35b6f..7eae078a 100644 --- a/dev-requirements-36.txt +++ b/dev-requirements-36.txt @@ -3,4 +3,4 @@ coverage==6.2 psutil pytest pytest-cov -sentry-sdk \ No newline at end of file +sentry-sdk