From 8fe3f9f4341c54ccf4c2ed4ad5e63b3964bd5de7 Mon Sep 17 00:00:00 2001 From: "clara.bayley" Date: Tue, 7 May 2024 16:10:36 +0200 Subject: [PATCH] fix: ignore Module level import not at top of file error in ruff linting --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 10d7e34c..cff5a4c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,4 +25,5 @@ repos: rev: v0.1.4 # Ruff version. hooks: - id: ruff # Run the linter for Python. + args: ["--ignore=E402"] # Ignore E402 error "Module level import not at top of file" - id: ruff-format # Run the formatter for Python.