From 5744dc0fc9bcf3cf21bc15655bcc6b27505b9cd4 Mon Sep 17 00:00:00 2001 From: saudzahirr Date: Tue, 18 Aug 2026 16:46:16 +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 5e833cb..1a93174 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,6 +82,9 @@ test = [ source = "vcs" [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