Lint the code

This commit is contained in:
nicolargo 2025-12-26 18:47:01 +01:00
parent 5886321156
commit 5d9593b393
8 changed files with 12 additions and 14 deletions

View File

@ -11,10 +11,7 @@ repos:
- id: ruff-check
name: "🐍 python · Linter with Ruff"
types_or: [ python, pyi ]
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format
name: "🐍 python · Format with Ruff"
types_or: [ python, pyi ]
args: [ --fix, --exit-non-zero-on-fix, --config, './pyproject.toml' ]
# - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.391
@ -48,11 +45,11 @@ repos:
name: "🐚 shell · Check shell script code style"
entry: bashate --error . --ignore=E006
- repo: https://github.com/mrtazz/checkmake.git
rev: 0.2.2
hooks:
- id: checkmake
name: "🐮 Makefile · Lint Makefile"
# - repo: https://github.com/mrtazz/checkmake.git
# rev: 0.2.2
# hooks:
# - id: checkmake
# name: "🐮 Makefile · Lint Makefile"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0

View File

@ -20,7 +20,7 @@ UV_RUN := .venv-uv/bin/uv
# if the command is only `make`, the default tasks will be the printing of the help.
.DEFAULT_GOAL := help
.PHONY: help test docs docs-server venv requirements profiling docker all clean
.PHONY: help test docs docs-server venv requirements profiling docker all clean all test
help: ## List all make commands available
@grep -E '^[\.a-zA-Z_%-]+:.*?## .*$$' $(MAKEFILE_LIST) | \

0
docker-compose/glances.conf Executable file → Normal file
View File

0
glances/exports/glances_mqtt/__init__.py Executable file → Normal file
View File

View File

@ -967,4 +967,5 @@ class ProcesslistPlugin(GlancesPluginModel):
# By default return 5 (corresponding to 99999 PID number)
return 5
# End of file