From e431ee86b40f9a2c9bf1e088eb7cf782dba58842 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Wed, 13 Nov 2024 10:44:15 -0600 Subject: [PATCH] Ruff/Mypy: Update excludes --- CHANGES.txt | 3 +++ RELEASE.txt | 2 ++ pyproject.toml | 31 ++++++++++++++++++++----------- 3 files changed, 25 insertions(+), 11 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 7d6ef004d9..478b67d6d0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -76,6 +76,9 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER - Change the attempted conversion of a define expansion from using int() to a constant expression evaluation. + From Thaddeus Crews: + - Ruff/Mypy: Excluded items now synced. + From Alex James: - On Darwin, PermissionErrors are now handled while trying to access /etc/paths.d. This may occur if SCons is invoked in a sandboxed diff --git a/RELEASE.txt b/RELEASE.txt index e71f535ef3..ae1b90be55 100644 --- a/RELEASE.txt +++ b/RELEASE.txt @@ -177,6 +177,8 @@ DEVELOPMENT - List visible changes in the way SCons is developed +- Ruff/Mypy: Excluded items now synced. + Thanks to the following contributors listed below for their contributions to this release. ========================================================================================== .. code-block:: text diff --git a/pyproject.toml b/pyproject.toml index cb824b7ba9..1e00257be9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,17 +73,15 @@ dist-dir = "build/dist" target-version = "py37" # Lowest python version supported extend-include = ["SConstruct", "SConscript"] extend-exclude = [ - "bench", - "bin", - "doc", - "src", - "template", - "test", - "testing", - "timings", - "SCons/Tool/docbook/docbook-xsl-1.76.1", - "bootstrap.py", - "runtest.py", + "bench/", + "bin/", + "doc/", + "src/", + "template/", + "test/", + "testing/", + "timings/", + "SCons/Tool/docbook/docbook-xsl-1.76.1/", ] [tool.ruff.format] @@ -99,3 +97,14 @@ quote-style = "preserve" # Equivalent to black's "skip-string-normalization" [tool.mypy] python_version = "3.8" +exclude = [ + "^bench/", + "^bin/", + "^doc/", + "^src/", + "^template/", + "^test/", + "^testing/", + "^timings/", + "^SCons/Tool/docbook/docbook-xsl-1.76.1/", +]