treewide: fix 'ruff check' errors

This is mostly about unused imports.

A couple errors remain, but are fine in my book (using `l` as a variable
name, assigning a lambda to a variable).
This commit is contained in:
Bruno BELANYI 2024-11-23 19:24:55 +00:00
parent 8618c81b2f
commit f9fc9fbd6b
54 changed files with 21 additions and 64 deletions

View file

@ -2,7 +2,7 @@
import sys
from fractions import Fraction
from typing import Dict, List, NamedTuple, Optional
from typing import List, NamedTuple, Optional
class Point(NamedTuple):

View file

@ -1,7 +1,5 @@
#!/usr/bin/env python
import sys
from copy import deepcopy
from enum import IntEnum
from typing import List, NamedTuple

View file

@ -5,7 +5,7 @@ import sys
from copy import deepcopy
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Callable, List, NamedTuple
from typing import List, NamedTuple
class ParameterMode(IntEnum):

View file

@ -1,11 +1,10 @@
#!/usr/bin/env python
import itertools
import sys
from copy import deepcopy
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Callable, List, NamedTuple
from typing import List, NamedTuple
class ParameterMode(IntEnum):

View file

@ -1,11 +1,10 @@
#!/usr/bin/env python
import itertools
import sys
from copy import deepcopy
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Callable, List, NamedTuple
from typing import List, NamedTuple
class ParameterMode(IntEnum):

View file

@ -4,7 +4,6 @@ import sys
from cmath import phase
from itertools import groupby
from math import gcd, pi
from pprint import pprint
from typing import NamedTuple, Set, Tuple

View file

@ -3,7 +3,7 @@
import sys
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Dict, Iterable, List, NamedTuple, Tuple, TypeVar
from typing import Iterable, List, NamedTuple, Tuple, TypeVar
class ParameterMode(IntEnum):

View file

@ -3,7 +3,7 @@
import sys
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Dict, Iterable, List, NamedTuple, Tuple, TypeVar
from typing import Iterable, List, NamedTuple, Tuple, TypeVar
class ParameterMode(IntEnum):

View file

@ -2,8 +2,6 @@
import sys
from functools import reduce
from itertools import chain, cycle
from typing import Iterable, List
def main() -> None:

View file

@ -4,7 +4,7 @@ import sys
from copy import deepcopy
from dataclasses import dataclass, field
from enum import IntEnum
from typing import Iterator, List, NamedTuple, Tuple
from typing import List, NamedTuple
class ParameterMode(IntEnum):