From dfe3356cb1860ebf087de33f85a742e8669cce5b Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 14 Dec 2024 17:01:58 +0100 Subject: [PATCH] Enable ruff check E303 (#23155) This rule was lost in the recent switch from flake8. This change brings back that rule which is currently in preview in ruff. See https://github.com/emscripten-core/emscripten/pull/23139#discussion_r1883095264 --- .circleci/config.yml | 2 ++ pyproject.toml | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5c5844c7e8c63..61d7cb912a278 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -425,6 +425,8 @@ jobs: - checkout - pip-install - run: ruff check + # TODO (cclauss): When ruff supports rule E303 without --preview, remove following line + - run: ruff check --preview --select=E303 mypy: executor: bionic steps: diff --git a/pyproject.toml b/pyproject.toml index f4c62aacb8f16..874462532f8e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,11 +49,8 @@ lint.ignore = [ "PLW1510", "PLW2901", ] - lint.per-file-ignores."emrun.py" = [ "PLE0704" ] - lint.mccabe.max-complexity = 48 # Recommended: 10 - lint.pylint.allow-magic-value-types = [ "bytes", "float",