Skip to content

Commit

Permalink
Ignore Ruff's new A005 diagnostic
Browse files Browse the repository at this point in the history
This diagnoses modules whose names match standard library modules.
We always use relative imports inside applications, and we don't
shadow the standard library module at the top level, so these modules
are not ambiguous and the standard library consumes far too much of
the available namespace to sacrifice all of it.
  • Loading branch information
rra committed Jan 9, 2025
1 parent b9e5044 commit 81315a6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docstring-code-format = true

[lint]
ignore = [
"A005", # we always use relative imports so this is not ambiguous
"ANN401", # sometimes Any is the right type
"ARG001", # unused function arguments are often legitimate
"ARG002", # unused method arguments are often legitimate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docstring-code-format = true

[lint]
ignore = [
"A005", # we always use relative imports so this is not ambiguous
"ANN401", # sometimes Any is the right type
"ARG001", # unused function arguments are often legitimate
"ARG002", # unused method arguments are often legitimate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docstring-code-format = true

[lint]
ignore = [
"A005", # we always use relative imports so this is not ambiguous
"ANN401", # sometimes Any is the right type
"ARG001", # unused function arguments are often legitimate
"ARG002", # unused method arguments are often legitimate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docstring-code-format = true

[lint]
ignore = [
"A005", # we always use relative imports so this is not ambiguous
"ANN401", # sometimes Any is the right type
"ARG001", # unused function arguments are often legitimate
"ARG002", # unused method arguments are often legitimate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ docstring-code-format = true

[lint]
ignore = [
"A005", # we always use relative imports so this is not ambiguous
"ANN401", # sometimes Any is the right type
"ARG001", # unused function arguments are often legitimate
"ARG002", # unused method arguments are often legitimate
Expand Down
2 changes: 1 addition & 1 deletion project_templates/technote_md/testn-000/technote.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ series_id = "TESTN"
canonical_url = "https://testn-000.lsst.io"
github_url = "https://github.com/lsst/testn-000"
github_default_branch = "main"
date_created = 2025-01-08T20:14:08Z
date_created = 2025-01-09T22:11:37Z
organization.name = "Vera C. Rubin Observatory"
organization.ror = "https://ror.org/048g3cy84"
license.id = "CC-BY-4.0"
Expand Down
2 changes: 1 addition & 1 deletion project_templates/technote_rst/testn-000/technote.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ series_id = "TESTN"
canonical_url = "https://testn-000.lsst.io"
github_url = "https://github.com/lsst/testn-000"
github_default_branch = "main"
date_created = 2025-01-08T20:14:08Z
date_created = 2025-01-09T22:11:37Z
organization.name = "Vera C. Rubin Observatory"
organization.ror = "https://ror.org/048g3cy84"
license.id = "CC-BY-4.0"
Expand Down

0 comments on commit 81315a6

Please sign in to comment.