mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-23 11:35:19 +03:00
add: pre-commit - setup changes
This commit is contained in:
parent
acb5ef585f
commit
9890749d81
22
.pre-commit-config.yaml
Normal file
22
.pre-commit-config.yaml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.5.0
|
||||||
|
hooks:
|
||||||
|
- id: check-ast
|
||||||
|
- id: check-docstring-first
|
||||||
|
- id: check-json
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- id: check-shebang-scripts-are-executable
|
||||||
|
- id: check-toml
|
||||||
|
- id: check-yaml
|
||||||
|
- id: debug-statements
|
||||||
|
- id: detect-private-key
|
||||||
|
- id: mixed-line-ending
|
||||||
|
- id: requirements-txt-fixer
|
||||||
|
|
||||||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
|
rev: v0.4.4
|
||||||
|
hooks:
|
||||||
|
- id: ruff-format
|
||||||
|
- id: ruff
|
||||||
|
args: [--fix, --exit-non-zero-on-fix]
|
@ -1,17 +1,17 @@
|
|||||||
py-spy
|
|
||||||
gprof2dot
|
|
||||||
black
|
|
||||||
pyright
|
|
||||||
requirements-parser
|
|
||||||
flake8
|
|
||||||
autopep8
|
|
||||||
autoflake
|
autoflake
|
||||||
ruff
|
autopep8
|
||||||
|
black
|
||||||
codespell
|
codespell
|
||||||
memory-profiler
|
flake8
|
||||||
|
fonttools>=4.43.0 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
|
gprof2dot
|
||||||
matplotlib
|
matplotlib
|
||||||
semgrep
|
memory-profiler
|
||||||
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
|
||||||
numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability
|
numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
pillow>=10.0.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
pillow>=10.0.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
fonttools>=4.43.0 # not directly required, pinned by Snyk to avoid a vulnerability
|
py-spy
|
||||||
|
pyright
|
||||||
|
requirements-parser
|
||||||
|
ruff
|
||||||
|
semgrep
|
||||||
|
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
|
reuse
|
||||||
|
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
sphinx
|
sphinx
|
||||||
sphinx_rtd_theme
|
sphinx_rtd_theme
|
||||||
ujson
|
ujson
|
||||||
reuse
|
|
||||||
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
|
@ -2,9 +2,9 @@
|
|||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
|
|
||||||
docker>=6.1.1; python_version >= "3.7"
|
docker>=6.1.1; python_version >= "3.7"
|
||||||
podman; python_version >= "3.6"
|
|
||||||
packaging; python_version >= "3.7"
|
packaging; python_version >= "3.7"
|
||||||
|
podman; python_version >= "3.6"
|
||||||
python-dateutil
|
python-dateutil
|
||||||
|
requests
|
||||||
six
|
six
|
||||||
urllib3
|
urllib3
|
||||||
requests
|
|
||||||
|
@ -15,6 +15,7 @@ influxdb-client; python_version >= "3.7" # For InfluxDB >= 1.8
|
|||||||
jinja2
|
jinja2
|
||||||
kafka-python
|
kafka-python
|
||||||
netifaces
|
netifaces
|
||||||
|
nvidia-ml-py; python_version >= "3.5"
|
||||||
packaging; python_version >= "3.7"
|
packaging; python_version >= "3.7"
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
pika
|
pika
|
||||||
@ -26,9 +27,8 @@ pydantic
|
|||||||
pygal
|
pygal
|
||||||
pymdstat
|
pymdstat
|
||||||
pymongo; python_version >= "3.7"
|
pymongo; python_version >= "3.7"
|
||||||
nvidia-ml-py; python_version >= "3.5"
|
|
||||||
pysnmp-lextudio; python_version >= "3.7"
|
|
||||||
pySMART.smartx
|
pySMART.smartx
|
||||||
|
pysnmp-lextudio; python_version >= "3.7"
|
||||||
python-dateutil
|
python-dateutil
|
||||||
pyzmq
|
pyzmq
|
||||||
requests
|
requests
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
psutil>=5.6.7
|
|
||||||
defusedxml
|
defusedxml
|
||||||
packaging
|
packaging
|
||||||
|
psutil>=5.6.7
|
||||||
ujson>=5.4.0
|
ujson>=5.4.0
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
-r requirements.txt
|
-r requirements.txt
|
||||||
|
|
||||||
fastapi; python_version >= "3.8"
|
fastapi; python_version >= "3.8"
|
||||||
|
jinja2
|
||||||
uvicorn; python_version >= "3.8"
|
uvicorn; python_version >= "3.8"
|
||||||
jinja2
|
|
Loading…
Reference in New Issue
Block a user