diff --git a/pyproject.toml b/pyproject.toml index 607a68f..b2e21f2 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 134d6cf..c9d5bcd 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: