From 6b2857c7c6901dd5f0a5e1101db6b2b6de75eaab Mon Sep 17 00:00:00 2001 From: GitHub Date: Sun, 13 Aug 2023 02:25:19 +0000 Subject: [PATCH] chore(dev): bump pre-commit hooks --- .pre-commit-config.yaml | 6 +++--- incipyt/commands.py | 2 +- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d0e1531..5f0c4596 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/compilerla/conventional-pre-commit - rev: v2.1.1 + rev: v2.3.0 hooks: - id: conventional-pre-commit stages: [commit-msg] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.260 + rev: v0.0.284 hooks: - id: ruff args: [--exit-non-zero-on-fix, --fix] @@ -24,6 +24,6 @@ repos: - id: check-toml - id: check-yaml - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.7.0 hooks: - id: black diff --git a/incipyt/commands.py b/incipyt/commands.py index e5de1ee6..72a8c0e6 100644 --- a/incipyt/commands.py +++ b/incipyt/commands.py @@ -21,7 +21,7 @@ def run(args, check=True, **kwargs): """ formatted = [arg.format() if isinstance(arg, Formattable) else arg for arg in args] logger.info(" ".join(formatted)) - result = subprocess.run(formatted, capture_output=True, check=False, **kwargs) + result = subprocess.run(formatted, capture_output=True, check=False, **kwargs) # noqa: S603 logger.info(result.stdout.decode()) if check and result.returncode: logger.error(result.stderr.decode()) diff --git a/pyproject.toml b/pyproject.toml index e06c0b11..91eb55ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,6 @@ dependencies = [ [project.optional-dependencies] dev = [ - "flit==3.9.0", "pre-commit==3.3.3", ] doc = [ @@ -68,6 +67,7 @@ ignore = [ "E501", "W505", # Disable rules about line-too-long, black does that "FBT002", #Disable "Boolean default value in function definition" rule "PLC1901", # Disable "(value == '') can be simplified to (not value)" + "RUF012", # Disable "should be annotated with typing.ClassVar" ] select = [ "B", "C4", "D", "E", "ERA", "F", "G", "I", "PIE", "PLC", "Q", "RUF", "SIM", "W",