mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Use __future__
imports in scripts (#5301)
This commit is contained in:
parent
eaa10ad2d9
commit
f9f0cf7524
11 changed files with 25 additions and 4 deletions
|
@ -3,13 +3,14 @@ panics, autofix errors and similar problems.
|
|||
|
||||
It's a less elaborate, more hacky version of check_ecosystem.py
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from subprocess import CalledProcessError
|
||||
from typing import NamedTuple, Optional
|
||||
from typing import NamedTuple
|
||||
|
||||
from tqdm import tqdm
|
||||
|
||||
|
@ -19,7 +20,7 @@ class Repository(NamedTuple):
|
|||
|
||||
org: str
|
||||
repo: str
|
||||
ref: Optional[str]
|
||||
ref: str | None
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue