Skip to content
Snippets Groups Projects
Commit 441546dc authored by Andrew Halberstadt's avatar Andrew Halberstadt
Browse files

Bug 1811850 - [lint] Replace isort linter with ruff,...

Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau

This results in some changes from our current `isort` configuration. I'm
unclear if it's because ruff isn't at 100% parity with isort, they choose
different defaults or if I missed some configuration.

Either way, the changes all look reasonable to me (see child commit), so I'm
inclined to just accept the new import format it imposes.

Differential Revision: https://phabricator.services.mozilla.com/D172348
parent dd673c2f
No related branches found
No related tags found
No related merge requests found
Showing
with 38 additions and 29 deletions
[settings]
profile=black
\ No newline at end of file
......@@ -4,6 +4,7 @@ line-length = 99
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
]
ignore = [
# These should be triaged and either fixed or moved to the list below.
......
[settings]
profile=black
known_first_party=lldbutils
\ No newline at end of file
extend = "../../pyproject.toml"
[isort]
known-first-party = ["lldbutils"]
[settings]
profile=black
known_first_party=mach
\ No newline at end of file
extend = "../../pyproject.toml"
[isort]
known-first-party = ["mach"]
......@@ -7,6 +7,7 @@ from textwrap import TextWrapper
from mach.config import TYPE_CLASSES
from mach.decorators import Command, CommandArgument
# Interact with settings for mach.
# Currently, we only provide functionality to view what settings are
......
[settings]
profile=black
known_first_party=mozboot
\ No newline at end of file
extend = "../../pyproject.toml"
[isort]
known-first-party = ["mozboot"]
[settings]
profile=black
known_first_party=mozbuild
\ No newline at end of file
extend = "../../pyproject.toml"
src = [
# Treat direct imports in the test modules as first party.
"mozpack/test",
"mozbuild/test",
[isort]
known-first-party = ["mozbuild"]
[settings]
profile=black
known_first_party=mozlint
\ No newline at end of file
extend = "../../pyproject.toml"
[isort]
known-first-party = ["mozlint"]
[settings]
profile=black
known_first_party=mozperftest
\ No newline at end of file
extend = "../../pyproject.toml"
[isort]
known-first-party = ["mozperftest"]
[settings]
profile=black
known_first_party=mozrelease
\ No newline at end of file
extend = "../../pyproject.toml"
[isort]
known-first-party = ["mozrelease"]
[settings]
profile=black
known_first_party=mozterm
\ No newline at end of file
extend = "../../pyproject.toml"
[isort]
known-first-party = ["mozterm"]
[settings]
profile=black
known_first_party=mozversioncontrol
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment