Skip to content
Snippets Groups Projects
Commit 73a00d54 authored by Moul's avatar Moul
Browse files

Bump pre-commit hooks

Pylint, fix `possibly-used-before-assignment` in examples,
and fix wrong variable name (s/insance/instance/g) :(

Use Pylint v3.2.7 https://github.com/pylint-dev/pylint/releases/tag/v3.2.7
because `too-many-positional-arguments` (5/5) has to be fixed
from v3.3.0 onward
parent 72834fdc
No related branches found
No related tags found
1 merge request!198Drop Py3.8, Add Py3.13, Bump pre-commit hooks and Pytest deps
exclude: ^docs/ exclude: ^docs/
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0 rev: v5.0.0
hooks: hooks:
- id: check-ast - id: check-ast
- id: check-merge-conflict - id: check-merge-conflict
...@@ -11,7 +11,7 @@ repos: ...@@ -11,7 +11,7 @@ repos:
- id: mixed-line-ending - id: mixed-line-ending
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 24.1.1 rev: 24.10.0
hooks: hooks:
- id: black - id: black
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
...@@ -20,23 +20,23 @@ repos: ...@@ -20,23 +20,23 @@ repos:
- id: isort - id: isort
args: ["--profile", "black"] args: ["--profile", "black"]
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0 rev: v1.13.0
hooks: hooks:
- id: mypy - id: mypy
args: args:
- "--install-types" - "--install-types"
- "--non-interactive" - "--non-interactive"
- repo: https://github.com/pylint-dev/pylint - repo: https://github.com/pylint-dev/pylint
rev: v3.0.3 rev: v3.2.7
hooks: hooks:
- id: pylint - id: pylint
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.15.0 rev: v3.19.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py39-plus] args: [--py39-plus]
- repo: https://github.com/Lucas-C/pre-commit-hooks - repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4 rev: v1.5.5
hooks: hooks:
- id: insert-license - id: insert-license
files: \.py$ files: \.py$
...@@ -53,6 +53,6 @@ repos: ...@@ -53,6 +53,6 @@ repos:
- "--project" - "--project"
- "clients/python/duniterpy" - "clients/python/duniterpy"
- repo: https://github.com/executablebooks/mdformat - repo: https://github.com/executablebooks/mdformat
rev: 0.7.17 rev: 0.7.18
hooks: hooks:
- id: mdformat - id: mdformat
...@@ -18,8 +18,8 @@ import sys ...@@ -18,8 +18,8 @@ import sys
from duniterpy.key import SigningKey from duniterpy.key import SigningKey
def load_scuttlebutt_file(signing_key_insance=None): def load_scuttlebutt_file(signing_key_instance=None):
if not signing_key_insance: if not signing_key_instance:
if len(sys.argv) < 2: if len(sys.argv) < 2:
print("Usage: python load_scuttlebutt_file.py FILEPATH") print("Usage: python load_scuttlebutt_file.py FILEPATH")
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment