diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d0e153..5f0c459 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 e5de1ee..72a8c0e 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 e06c0b1..91eb55e 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",