From 80ae99c754af7cd5f67f5b480f826dc554507b1e Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 26 May 2023 22:20:37 -0500 Subject: [PATCH] chore: actually isort with ruff --- examples/black | 3 ++- pyproject.toml | 1 + src/viv/viv.py | 11 ++++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/black b/examples/black index 16f3a17..5687e8b 100755 --- a/examples/black +++ b/examples/black @@ -8,8 +8,9 @@ A possible cli signature viv shim black -o ~/bin/black """ -import sys import subprocess +import sys + import viv if __name__ == "__main__": diff --git a/pyproject.toml b/pyproject.toml index 2aad701..dfabeb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ dev = [ ] [tool.ruff] +select = ["E","F","I"] ignore = ["E402"] [tool.mypy] diff --git a/src/viv/viv.py b/src/viv/viv.py index 0de1b5d..5f082f8 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -21,17 +21,16 @@ import sys import tempfile import threading import time -from urllib.request import urlopen -from urllib.error import HTTPError import venv -from argparse import SUPPRESS, Action -from argparse import ArgumentParser as StdArgParser from argparse import ( + SUPPRESS, + Action, HelpFormatter, Namespace, RawDescriptionHelpFormatter, _SubParsersAction, ) +from argparse import ArgumentParser as StdArgParser from dataclasses import dataclass from datetime import datetime from itertools import zip_longest @@ -50,8 +49,10 @@ from typing import ( Tuple, Type, ) +from urllib.error import HTTPError +from urllib.request import urlopen -__version__ = "23.5a1-1-g0b26c8c-dev" +__version__ = "23.5a1-3-g3a85fe4-dev" @dataclass