diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b834ea23..c14879c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-ast - id: check-docstring-first @@ -15,7 +15,7 @@ repos: - id: requirements-txt-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.4 + rev: v0.11.5 hooks: - id: ruff-format - id: ruff diff --git a/Makefile b/Makefile index df8ca307..3e05b3bc 100644 --- a/Makefile +++ b/Makefile @@ -124,6 +124,9 @@ format: ## Format the code lint: ## Lint the code. $(venv_full)/python -m ruff check . --fix +lint-readme: ## Lint the main README.rst file + $(venv_full)/python -m rstcheck README.rst + codespell: ## Run codespell to fix common misspellings in text files $(venv_full)/codespell -S .git,./docs/_build,./Glances.egg-info,./venv*,./glances/outputs,*.svg -L hart,bu,te,statics -w diff --git a/README.rst b/README.rst index 8245972a..fd4eac03 100644 --- a/README.rst +++ b/README.rst @@ -327,9 +327,7 @@ To install Glances from Ports: macOS ----- -If you do not want to use the glancesautoinstall script, follow this procedure. - -macOS users can install Glances using ``Homebrew`` or ``MacPorts``. +MacOS users can install Glances using ``Homebrew`` or ``MacPorts``. Homebrew ```````` @@ -531,7 +529,6 @@ License Glances is distributed under the LGPL version 3 license. See ``COPYING`` for more details. .. _psutil: https://github.com/giampaolo/psutil -.. _glancesautoinstall: https://github.com/nicolargo/glancesautoinstall .. _Python: https://www.python.org/getit/ .. _Termux: https://play.google.com/store/apps/details?id=com.termux .. _readthedocs: https://glances.readthedocs.io/ @@ -540,7 +537,4 @@ Glances is distributed under the LGPL version 3 license. See ``COPYING`` for mor .. _package: https://repology.org/project/glances/versions .. _sponsors: https://github.com/sponsors/nicolargo .. _wishlist: https://www.amazon.fr/hz/wishlist/ls/BWAAQKWFR3FI?ref_=wl_share -.. _issue2021: https://github.com/nicolargo/glances/issues/2021 -.. _issue2021comment: https://github.com/nicolargo/glances/issues/2021#issuecomment-1197831157 -.. _issue2612: https://github.com/nicolargo/glances/issues/2612 .. _Docker: https://github.com/nicolargo/glances/blob/develop/docs/docker.rst diff --git a/dev-requirements.txt b/dev-requirements.txt index 88ed6753..81012da9 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -11,6 +11,7 @@ py-spy pyright pytest requirements-parser +rstcheck ruff selenium semgrep; platform_system == 'Linux' diff --git a/pyproject.toml b/pyproject.toml index 853cf63f..271178fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,6 +60,7 @@ dev = [ "pyright", "pytest", "requirements-parser", + "rstcheck", "ruff", "selenium", "semgrep",