Skip to content

Commit

Permalink
Merge pull request #4641 from Repiteo/update-excludes
Browse files Browse the repository at this point in the history
Ruff/Mypy: Update excludes
  • Loading branch information
bdbaddog authored Nov 15, 2024
2 parents c1ddbc7 + e431ee8 commit d1d5355
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 20 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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/",
]

0 comments on commit d1d5355

Please sign in to comment.