File tree Expand file tree Collapse file tree 4 files changed +28
-27
lines changed Expand file tree Collapse file tree 4 files changed +28
-27
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
17
17
access SCons internals.
18
18
- Migrate setup.cfg logic to pyproject.toml; remove setup.cfg.
19
19
- Update .gitattributes to match .editorconfig; enforce eol settings.
20
+ - Replace black/flake8 with ruff for more efficient formatting & linting.
20
21
21
22
From Raymond Li:
22
23
- Fix issue #3935: OSErrors are now no longer hidden during execution of
Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ DEVELOPMENT
116
116
The repo-wide line-ending is now `lf`, with the exception of a few
117
117
Windows-only files using `crlf` instead. Any files not already fitting
118
118
this format have been explicitly converted.
119
+ - Repository linter/formatter changed from flake8/black to ruff, as the
120
+ latter grants an insane speed boost without compromising functionality.
121
+ Existing settings were migrated 1-to-1 where possible.
119
122
- The test runner now recognizes the unittest module's return code of 5,
120
123
which means no tests were run. SCons/Script/MainTests.py currently
121
124
has no tests, so this particular error code is expected - should not
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
95
python_version = " 3.8"
You can’t perform that action at this time.
0 commit comments