diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-11-13 19:10:12 (GMT) |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-11-16 20:58:43 (GMT) |
commit | 3829f4551edebee3e42864b19e6332b24af3eb93 (patch) | |
tree | 6ca07b12f8a14e705c00a198739d43cb46d6666e /pyproject.toml | |
parent | d1d5355b716644be649d99b16c6f2bf64e9f64e4 (diff) | |
download | SCons-3829f4551edebee3e42864b19e6332b24af3eb93.zip SCons-3829f4551edebee3e42864b19e6332b24af3eb93.tar.gz SCons-3829f4551edebee3e42864b19e6332b24af3eb93.tar.bz2 |
Integrate `from __future__ import annotations`
Diffstat (limited to 'pyproject.toml')
-rw-r--r-- | pyproject.toml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml index 1e00257..5f3a49e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,6 +84,15 @@ extend-exclude = [ "SCons/Tool/docbook/docbook-xsl-1.76.1/", ] +[tool.ruff.lint] +extend-select = [ + "FA", # Future annotations + "UP006", # Use {to} instead of {from} for type annotation + "UP007", # Use `X | Y` for type annotations + "UP037", # Remove quotes from type annotation +] +extend-safe-fixes = ["FA", "UP006", "UP007"] + [tool.ruff.format] quote-style = "preserve" # Equivalent to black's "skip-string-normalization" |