From cde80e2094b6ef18e8dd3867583791fcde7b5b55 Mon Sep 17 00:00:00 2001 From: saudzahirr Date: Tue, 18 Aug 2026 16:45:22 +0500 Subject: [PATCH] chore: exclude .github from static analysis Codacy, SonarQube Cloud and ruff all reach into .github, so CI workflow definitions and the helper scripts they run are graded as if they were library code. Nothing under .github ships in the published package, so findings there fail a quality gate without describing any risk to users. Adds .codacy.yml excluding .github/** -- matching the scope already set for SonarQube Cloud in .sonarcloud.properties -- and points ruff away from the same directory. Co-Authored-By: Claude Opus 5 (1M context) --- .codacy.yml | 9 +++++++++ pyproject.toml | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 .codacy.yml diff --git a/.codacy.yml b/.codacy.yml new file mode 100644 index 0000000..0793f6b --- /dev/null +++ b/.codacy.yml @@ -0,0 +1,9 @@ +# Codacy analysis scope. +# +# CI workflow definitions and the helper scripts they run are never +# shipped in the published package, so findings there fail the quality +# gate without describing any risk to users of this project. This +# mirrors the scope already set for SonarQube Cloud in +# .sonarcloud.properties. +exclude_paths: + - ".github/**" diff --git a/pyproject.toml b/pyproject.toml index 3b81fe4..942cec2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,6 +90,9 @@ source = "vcs" include = [ "/spinterp" ] [tool.ruff] +# CI workflow definitions and the helper scripts they run are not +# part of the published package, so they are out of scope here. +extend-exclude = [".github"] line-length = 80 indent-width = 4 preview = true