From b5848bc94f1df4cbdedddb11684b3a9e0c68d025 Mon Sep 17 00:00:00 2001 From: mercael Date: Fri, 25 Sep 2026 09:44:04 +0300 Subject: [PATCH] lint: per-file-ignore F821 under checks/, pin ruff in dev extras MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Implements the policy proposed in #133, scoped to what it asks for: * checks/**/*.py ignores F821 only — those undefined names come from the learner namespace the runner resolves at runtime, so they are expected rather than defects; * ruff moves into the dev extra so the config is reachable from pip install -e .[dev]. No global select/ignore block is added: Ruff stays on its defaults so the checks/ exception is the only new policy, and the remaining violations stay open for their own pass. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 404ee95..ba80d11 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,6 +58,7 @@ Documentation = "https://pythonlings.abhik.ai/" dev = [ "pytest>=7.0", "pytest-asyncio>=0.21", + "ruff>=0.6.0", ] [project.scripts] @@ -77,3 +78,6 @@ packages = ["pythonlings"] asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "function" testpaths = ["tests"] + +[tool.ruff.lint.per-file-ignores] +"checks/**/*.py" = ["F821"]