mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Lint
This commit is contained in:
@@ -12,7 +12,7 @@ pip install -e ./python/ruff-ecosystem
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
```shell
|
||||
ruff-ecosystem <check | format> <baseline executable> <comparison executable>
|
||||
```
|
||||
|
||||
@@ -42,4 +42,4 @@ You can also provide a path to cache checkouts to speed up repeated runs:
|
||||
|
||||
```shell
|
||||
ruff-ecosystem check "$(which ruff)" "./target/debug/ruff" --cache ./repos
|
||||
```
|
||||
```
|
||||
|
||||
@@ -8,9 +8,10 @@ from collections import Counter
|
||||
from dataclasses import dataclass, field
|
||||
from pathlib import Path
|
||||
from subprocess import PIPE
|
||||
from typing import TYPE_CHECKING, Any, Iterator, Self, Sequence
|
||||
from typing import TYPE_CHECKING, Iterator, Self, Sequence
|
||||
|
||||
from ruff_ecosystem import logger
|
||||
from ruff_ecosystem.markdown import project_section
|
||||
from ruff_ecosystem.types import (
|
||||
Comparison,
|
||||
Diff,
|
||||
@@ -18,10 +19,9 @@ from ruff_ecosystem.types import (
|
||||
RuffError,
|
||||
Serializable,
|
||||
)
|
||||
from ruff_ecosystem.markdown import project_section
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ruff_ecosystem.projects import ClonedRepository, Project
|
||||
from ruff_ecosystem.projects import ClonedRepository
|
||||
|
||||
|
||||
# Matches lines that are summaries rather than diagnostics
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
import time
|
||||
from asyncio import create_subprocess_exec
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from subprocess import PIPE
|
||||
from unidiff import PatchSet
|
||||
from typing import TYPE_CHECKING, Self, Sequence
|
||||
import re
|
||||
|
||||
from unidiff import PatchSet
|
||||
|
||||
from ruff_ecosystem import logger
|
||||
from ruff_ecosystem.markdown import project_section
|
||||
from ruff_ecosystem.types import Comparison, Diff, Result, RuffError
|
||||
|
||||
@@ -4,8 +4,7 @@ import abc
|
||||
import dataclasses
|
||||
import difflib
|
||||
from dataclasses import dataclass, is_dataclass
|
||||
from typing import TYPE_CHECKING, Any, Iterable, Sequence, Generator
|
||||
import heapq
|
||||
from typing import TYPE_CHECKING, Any, Generator, Iterable, Sequence
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from ruff_ecosystem.projects import ClonedRepository, Project
|
||||
|
||||
Reference in New Issue
Block a user