diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b517a314..a2863551 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ repos: stages: - commit-msg repo: https://github.com/commitizen-tools/commitizen - rev: v4.10.0 + rev: v4.12.1 - hooks: - id: check-useless-excludes repo: meta @@ -18,7 +18,7 @@ repos: - hooks: - id: black repo: https://github.com/python/black - rev: 25.12.0 + rev: 26.1.0 - hooks: - id: check-added-large-files args: [--maxkb=10000] @@ -51,7 +51,7 @@ repos: rev: v6.0.0 - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.14.8 + rev: v0.14.14 hooks: # Run the linter. - id: ruff diff --git a/risuclient/shell.py b/risuclient/shell.py index bd0e1f7d..3886bafa 100755 --- a/risuclient/shell.py +++ b/risuclient/shell.py @@ -35,7 +35,6 @@ import tempfile import sys - if sys.version_info >= (3, 4): # Handle imp deprecation towards importlib diff --git a/setup.py b/setup.py index cd759805..41d264d1 100755 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ command = "git tag|sort -V|grep -v ^[a-Z]|grep -v 2017|tail -1" proc = subprocess.Popen([command], stdout=subprocess.PIPE, shell=True) -(out, err) = proc.communicate() +out, err = proc.communicate() version = out.strip().decode("utf-8")