summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2023-05-01 10:12:09 +0200
committernicolargo <nicolas@nicolargo.com>2023-05-01 10:12:09 +0200
commitf4873cef08c8cc03664ace2be63fb42dbfc17c8d (patch)
treeee3265b0431d519576786af40d168ef557375fc1 /Makefile
parent4caa267eec42713a5da0830ca27f14e9f9467300 (diff)
Improve Lint
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4d3abb66..2ddbdbce 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,9 @@ format: venv-dev-upgrade ## Format the code
flake8: venv-dev-upgrade ## Run flake8 linter.
@git ls-files '*.py' | xargs ./venv/bin/python -m flake8 --config=.flake8
+ruff: venv-dev-upgrade ## Run Ruff (fastest) linter.
+ ./venv/bin/python -m ruff check . --config=./pyproject.toml
+
codespell: venv-dev-upgrade ## Run codespell to fix common misspellings in text files
./venv/bin/codespell -S .git,./docs/_build,./Glances.egg-info,./venv,./glances/outputs,*.svg -L hart,bu,te,statics