From 55383a002de04b6f525c9c6d9276a4e17c6794aa Mon Sep 17 00:00:00 2001 From: Marcel Wilson Date: Fri, 2 Feb 2024 16:41:13 -0600 Subject: [PATCH] linter/rebase fixes --- pyproject.toml | 28 ++++++++++++++-------------- tests/test_questions.py | 2 +- tests/useful_mocks.py | 1 + 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 35fe679..8ff926d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -115,21 +115,21 @@ select = [ "BLE", # flake8-blind-except "C4", # flake8-comprehensions "D", # pydocstyle -# "E", # pycodestyle error -# "EM", # flake8-errmsg -# "ERA", # eradicate -# "F", # Pyflakes -# "FA", # flake8-future-annotations + "E", # pycodestyle error + "EM", # flake8-errmsg + "ERA", # eradicate + "F", # Pyflakes + "FA", # flake8-future-annotations # "FBT", # flake8-boolean-trap -# "FIX", # flake8-fixme -# "FLY", # flynt -# "I", # isort -# "ICN", # flake8-import-conventions -# "ISC", # flake8-implicit-str-concat -# "PGH", # pygrep-hooks -# "PIE", # flake8-pie -# "PL", # pylint -# "PT", # flake8-pytest-style + "FIX", # flake8-fixme + "FLY", # flynt + "I", # isort + "ICN", # flake8-import-conventions + "ISC", # flake8-implicit-str-concat + "PGH", # pygrep-hooks + "PIE", # flake8-pie + "PL", # pylint + "PT", # flake8-pytest-style "Q", # flake8-quotes "RET", # flake8-return "RSE", # flake8-raise diff --git a/tests/test_questions.py b/tests/test_questions.py index dc120ad..6517afd 100644 --- a/tests/test_questions.py +++ b/tests/test_questions.py @@ -3,7 +3,7 @@ from unittest import mock import pytest -from screenpy import Actor, Answerable, Describable, ErrorKeeper, UnableToAnswer, Actor +from screenpy import Actor, Answerable, Describable, ErrorKeeper, UnableToAnswer from selenium.common.exceptions import WebDriverException from selenium.webdriver.common.alert import Alert as SeleniumAlert from selenium.webdriver.remote.webelement import WebElement diff --git a/tests/useful_mocks.py b/tests/useful_mocks.py index 72a382d..10a3892 100644 --- a/tests/useful_mocks.py +++ b/tests/useful_mocks.py @@ -1,4 +1,5 @@ from __future__ import annotations + from typing import TYPE_CHECKING, cast from unittest import mock