File tree Expand file tree Collapse file tree 4 files changed +29
-28
lines changed Expand file tree Collapse file tree 4 files changed +29
-28
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
14
14
access SCons internals.
15
15
- Migrate setup.cfg logic to pyproject.toml; remove setup.cfg.
16
16
- Update .gitattributes to match .editorconfig; enforce eol settings.
17
+ - Replace black/flake8 with ruff for more efficient formatting & linting.
17
18
18
19
From Raymond Li:
19
20
- Fix issue #3935: OSErrors are now no longer hidden during execution of
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ DEVELOPMENT
92
92
The repo-wide line-ending is now `lf`, with the exception of a few
93
93
Windows-only files using `crlf` instead. Any files not already fitting
94
94
this format have been explicitly converted.
95
+ - Repository linter/formatter changed from flake8/black to ruff, as the
96
+ latter grants an insane speed boost without compromising functionality.
97
+ Existing settings were migrated 1-to-1 where possible.
95
98
96
99
97
100
Thanks to the following contributors listed below for their contributions to this release.
Original file line number Diff line number Diff line change @@ -66,11 +66,30 @@ dist-dir = "build/dist"
66
66
[tool .distutils .bdist_wheel ]
67
67
dist-dir = " build/dist"
68
68
69
- # for black and mypy, set the lowest Python version supported
70
- [tool .black ]
71
- quiet = true
72
- target-version = [' py36' ]
73
- skip-string-normalization = true
69
+ [tool .ruff ]
70
+ target-version = " py37" # Lowest python version supported
71
+ extend-include = [" SConstruct" , " SConscript" ]
72
+ extend-exclude = [
73
+ " bench" ,
74
+ " bin" ,
75
+ " doc" ,
76
+ " src" ,
77
+ " template" ,
78
+ " test" ,
79
+ " testing" ,
80
+ " timings" ,
81
+ " SCons/Tool/docbook/docbook-xsl-1.76.1" ,
82
+ " bootstrap.py" ,
83
+ " runtest.py" ,
84
+ ]
85
+
86
+ [tool .ruff .format ]
87
+ quote-style = " preserve" # Equivalent to black's "skip-string-normalization"
88
+
89
+ [tool .ruff .lint .per-file-ignores ]
90
+ "SCons/Util/__init__.py" = [
91
+ " F401" , # Module imported but unused
92
+ ]
74
93
75
94
[tool .mypy ]
76
- python_version = " 3.6"
95
+ python_version = " 3.6" # Lowest python version supported (v0.971 and below)
You can’t perform that action at this time.
0 commit comments