mirror of https://github.com/nicolargo/glances.git
Update precommit hook
This commit is contained in:
parent
1378eb80ba
commit
7de582fdb0
|
|
@ -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
|
||||
|
|
|
|||
3
Makefile
3
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ py-spy
|
|||
pyright
|
||||
pytest
|
||||
requirements-parser
|
||||
rstcheck
|
||||
ruff
|
||||
selenium
|
||||
semgrep; platform_system == 'Linux'
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ dev = [
|
|||
"pyright",
|
||||
"pytest",
|
||||
"requirements-parser",
|
||||
"rstcheck",
|
||||
"ruff",
|
||||
"selenium",
|
||||
"semgrep",
|
||||
|
|
|
|||
Loading…
Reference in New Issue