diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9dcd417cccc..29d8f6d57be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-ast exclude: ^(packages/syft/tests/mongomock) @@ -84,7 +84,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.4.7" + rev: "v0.6.2" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] @@ -94,7 +94,7 @@ repos: types_or: [python, pyi, jupyter] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.11.2 hooks: - id: mypy name: "mypy: syft-cli" @@ -119,7 +119,7 @@ repos: ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.11.2 hooks: - id: mypy name: "mypy: grid" @@ -144,7 +144,7 @@ repos: ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.11.2 hooks: - id: mypy name: "mypy: syft" diff --git a/packages/syft/setup.cfg b/packages/syft/setup.cfg index ed48a5c450d..f8e1bd2e747 100644 --- a/packages/syft/setup.cfg +++ b/packages/syft/setup.cfg @@ -93,13 +93,13 @@ data_science = dev = %(test_plugins)s %(telemetry)s - bandit==1.7.8 - debugpy==1.8.2 + bandit==1.7.9 + debugpy==1.8.5 importlib-metadata==7.1.0 isort==5.13.2 - mypy==1.10.0 + mypy==1.11.1 pre-commit==3.7.1 - ruff==0.4.7 + ruff==0.6.2 safety>=2.4.0b2 telemetry = diff --git a/ruff.toml b/ruff.toml index bdf2c46b9cf..5a92450862d 100644 --- a/ruff.toml +++ b/ruff.toml @@ -20,6 +20,13 @@ select = [ ignore = [ "B904", # check for raise statements in exception handlers that lack a from clause "B905", # zip() without an explicit strict= parameter + "E721", # must be removed before merge + "RUF003", # must be removed before merge + "RUF005", # must be removed before merge + "RUF012", + "RUF013", + "RUF015", # must be removed before merge + "RUF018", # must be removed before merge ] [lint.per-file-ignores]