From c213696e6c558f0dea262f1c6251cbc06e2462be Mon Sep 17 00:00:00 2001 From: Mole1424 Date: Sat, 10 Aug 2024 12:41:00 +0100 Subject: [PATCH] ruff version diff -- --- pyproject.toml | 25 ------------------------- voting/splitutils.py | 4 ++-- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 607a68f2..b2e21f21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,28 +1,3 @@ -[tool.black] -line-length = 88 -target_version = ['py310'] -include = '\.pyi?$' -exclude = ''' - -( - /( - \.eggs # exclude a few common directories in the - | \.git # root of the project - | \.hg - | \.mypy_cache - | \.tox - | env - | _build - | buck-out - | build - | dist - | .venv - | venv - )/ -) -''' - - [tool.pytest.ini_options] minversion = "6.0" addopts = "-ra" diff --git a/voting/splitutils.py b/voting/splitutils.py index 134d6cf3..c9d5bcdf 100644 --- a/voting/splitutils.py +++ b/voting/splitutils.py @@ -1,9 +1,8 @@ +import _csv import re from csv import QUOTE_ALL, Sniffer, reader from typing import List -import _csv - # Customized sniffer with custom delimiter order class ArgSniffer(Sniffer): @@ -15,6 +14,7 @@ def __init__(self, preferred): # Default delimiter order delimiters = ["\n", ";", ",", " "] + # Split voting choice arguments def split_args(input: str, dels=None) -> List[str]: if dels is None: