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 - id: ruff-check
name: "🐍 python · Linter with Ruff" name: "🐍 python · Linter with Ruff"
types_or: [ python, pyi ] types_or: [ python, pyi ]
args: [ --fix, --exit-non-zero-on-fix ] args: [ --fix, --exit-non-zero-on-fix, --config, './pyproject.toml' ]
- id: ruff-format
name: "🐍 python · Format with Ruff"
types_or: [ python, pyi ]
# - repo: https://github.com/RobertCraigie/pyright-python # - repo: https://github.com/RobertCraigie/pyright-python
# rev: v1.1.391 # rev: v1.1.391
@ -48,11 +45,11 @@ repos:
name: "🐚 shell · Check shell script code style" name: "🐚 shell · Check shell script code style"
entry: bashate --error . --ignore=E006 entry: bashate --error . --ignore=E006
- repo: https://github.com/mrtazz/checkmake.git # - repo: https://github.com/mrtazz/checkmake.git
rev: 0.2.2 # rev: 0.2.2
hooks: # hooks:
- id: checkmake # - id: checkmake
name: "🐮 Makefile · Lint Makefile" # name: "🐮 Makefile · Lint Makefile"
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 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. # if the command is only `make`, the default tasks will be the printing of the help.
.DEFAULT_GOAL := 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 help: ## List all make commands available
@grep -E '^[\.a-zA-Z_%-]+:.*?## .*$$' $(MAKEFILE_LIST) | \ @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) # By default return 5 (corresponding to 99999 PID number)
return 5 return 5
# End of file # End of file