Skip to content

Commit 64c26bf

Browse files
committed
DM-44635: Add UP040 to ruff ignore
[UP040[(https://docs.astral.sh/ruff/rules/non-pep695-type-alias/) warns on the use of `TypeAlias` instead of the new `type` keyword. But: while Python 3.12 supports the `type` keyword, mypy [doesn't yet](python/mypy#15238).
1 parent a12daf5 commit 64c26bf

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

Diff for: project_templates/fastapi_safir_app/example/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ ignore = [
140140
"TID252", # if we're going to use relative imports, use them always
141141
"TRY003", # good general advice but lint is way too aggressive
142142
"TRY301", # sometimes raising exceptions inside try is the best flow
143+
"UP040", # Python 3.12 supports `type` alias kw, but mypy doesn't yet
143144

144145
# The following settings should be disabled when using ruff format
145146
# per https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

Diff for: project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ ignore = [
140140
"TID252", # if we're going to use relative imports, use them always
141141
"TRY003", # good general advice but lint is way too aggressive
142142
"TRY301", # sometimes raising exceptions inside try is the best flow
143+
"UP040", # Python 3.12 supports `type` alias kw, but mypy doesn't yet
143144

144145
# The following settings should be disabled when using ruff format
145146
# per https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

Diff for: project_templates/square_pypi_package/example/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ ignore = [
176176
"TID252", # if we're going to use relative imports, use them always
177177
"TRY003", # good general advice but lint is way too aggressive
178178
"TRY301", # sometimes raising exceptions inside try is the best flow
179+
"UP040", # Python 3.12 supports `type` alias kw, but mypy doesn't yet
179180

180181
# The following settings should be disabled when using ruff format
181182
# per https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

Diff for: project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ ignore = [
176176
"TID252", # if we're going to use relative imports, use them always
177177
"TRY003", # good general advice but lint is way too aggressive
178178
"TRY301", # sometimes raising exceptions inside try is the best flow
179+
"UP040", # Python 3.12 supports `type` alias kw, but mypy doesn't yet
179180

180181
# The following settings should be disabled when using ruff format
181182
# per https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules

Diff for: project_templates/technote_md/testn-000/technote.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ series_id = "TESTN"
44
canonical_url = "https://testn-000.lsst.io"
55
github_url = "https://github.com/lsst/testn-000"
66
github_default_branch = "main"
7-
date_created = 2024-04-26T21:58:10Z
7+
date_created = 2024-06-26T14:19:51Z
88
organization.name = "Vera C. Rubin Observatory"
99
organization.ror = "https://ror.org/048g3cy84"
1010
license.id = "CC-BY-4.0"

Diff for: project_templates/technote_rst/testn-000/technote.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ series_id = "TESTN"
44
canonical_url = "https://testn-000.lsst.io"
55
github_url = "https://github.com/lsst/testn-000"
66
github_default_branch = "main"
7-
date_created = 2024-04-26T21:58:10Z
7+
date_created = 2024-06-26T14:19:51Z
88
organization.name = "Vera C. Rubin Observatory"
99
organization.ror = "https://ror.org/048g3cy84"
1010
license.id = "CC-BY-4.0"

0 commit comments

Comments
 (0)