This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new 680c9ee  Exclude the RAT exclusion file and allow ignoring the checks 
cache
680c9ee is described below

commit 680c9ee65e557c6d0d0099bbc797e262d1700dc3
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sun Jan 4 19:23:39 2026 +0000

    Exclude the RAT exclusion file and allow ignoring the checks cache
---
 atr/tasks/checks/__init__.py | 4 ++++
 atr/tasks/checks/rat.py      | 1 +
 2 files changed, 5 insertions(+)

diff --git a/atr/tasks/checks/__init__.py b/atr/tasks/checks/__init__.py
index 09a15d3..6bcfb36 100644
--- a/atr/tasks/checks/__init__.py
+++ b/atr/tasks/checks/__init__.py
@@ -204,6 +204,10 @@ class Recorder:
         if not await aiofiles.os.path.isfile(path):
             return False
 
+        no_cache_file = self.abs_path_base() / ".atr-no-cache"
+        if await aiofiles.os.path.exists(no_cache_file):
+            return False
+
         self.__input_hash = await _compute_file_hash(path)
 
         async with db.session() as data:
diff --git a/atr/tasks/checks/rat.py b/atr/tasks/checks/rat.py
index eba3c35..0ca3d04 100644
--- a/atr/tasks/checks/rat.py
+++ b/atr/tasks/checks/rat.py
@@ -138,6 +138,7 @@ def _build_rat_command(
     command.extend(["--input-exclude", _RAT_REPORT_FILENAME])
 
     if exclude_file is not None:
+        command.extend(["--input-exclude", _RAT_EXCLUDES_FILENAME])
         command.extend(["--input-exclude-file", exclude_file])
 
     command.extend(["--", "."])


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to