summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-05-31 17:05:43 (GMT)
committerThaddeus Crews <repiteo@outlook.com>2024-06-02 15:29:53 (GMT)
commit112118151dc8e555f06e573380523dbc78a14a1b (patch)
tree78782c07c41be96eab9f163b3cff9376d5640b56 /pyproject.toml
parent432ec8acf264e428acc7c823692561472555c9a3 (diff)
downloadSCons-112118151dc8e555f06e573380523dbc78a14a1b.zip
SCons-112118151dc8e555f06e573380523dbc78a14a1b.tar.gz
SCons-112118151dc8e555f06e573380523dbc78a14a1b.tar.bz2
Replace `black`/`flake8` with `ruff`
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml31
1 files changed, 25 insertions, 6 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 8d755dc..94f62a4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -66,11 +66,30 @@ dist-dir = "build/dist"
[tool.distutils.bdist_wheel]
dist-dir = "build/dist"
-# for black and mypy, set the lowest Python version supported
-[tool.black]
-quiet = true
-target-version = ['py36']
-skip-string-normalization = true
+[tool.ruff]
+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",
+]
+
+[tool.ruff.format]
+quote-style = "preserve" # Equivalent to black's "skip-string-normalization"
+
+[tool.ruff.lint.per-file-ignores]
+"SCons/Util/__init__.py" = [
+ "F401", # Module imported but unused
+]
[tool.mypy]
-python_version = "3.6"
+python_version = "3.6" # Lowest python version supported (v0.971 and below)