Skip to content

Commit

Permalink
Some re-formatting with new ruff version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Oct 13, 2024
1 parent 4f88b5d commit befe56a
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/twill/extensions/match_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def setmatch(what: str) -> None:

def _eval(match: str, exp: str) -> Any:
"""Evaluate an expression."""
return eval(exp, globals(), {"m": match}) # noqa: PGH001, S307
return eval(exp, globals(), {"m": match}) # noqa: S307


def popmatch(which: str) -> None:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def url() -> Generator[str, None, None]:
utils.pop_test_dir()


@pytest.fixture()
@pytest.fixture
def output() -> Generator[StringIO, None, None]:
"""Get output from the test."""
from twill import set_output
Expand Down
1 change: 1 addition & 0 deletions tests/test_checkbox.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

import twill
from twill import browser, commands, namespaces
from twill.errors import TwillException
Expand Down
1 change: 1 addition & 0 deletions tests/test_form.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

import twill
from twill import commands, namespaces
from twill.errors import TwillAssertionError, TwillException
Expand Down
1 change: 1 addition & 0 deletions tests/test_go.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from pathlib import Path

import pytest

import twill.parse
from twill import commands, namespaces
from twill.errors import TwillAssertionError, TwillNameError
Expand Down
1 change: 1 addition & 0 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from io import StringIO

import pytest

from twill import browser, commands
from twill.errors import TwillException

Expand Down
1 change: 1 addition & 0 deletions tests/test_radiobutton.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from twill import browser, commands, namespaces
from twill.errors import TwillException

Expand Down
1 change: 1 addition & 0 deletions tests/test_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pathlib import Path

import pytest

from twill import __url__ as twill_url
from twill import __version__ as twill_version
from twill.errors import TwillNameError
Expand Down
1 change: 1 addition & 0 deletions tests/test_show.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from twill import commands
from twill.errors import TwillException

Expand Down
1 change: 1 addition & 0 deletions tests/test_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

import pytest

from twill import utils
from twill.commands import config
from twill.errors import TwillException
Expand Down
1 change: 1 addition & 0 deletions tests/test_timeout.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest
from httpx import ReadTimeout

from twill import commands


Expand Down
1 change: 1 addition & 0 deletions tests/test_two_forms.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from twill import commands
from twill.errors import TwillException

Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pathlib import Path

import pytest

from twill import utils
from twill.errors import TwillException

Expand Down
1 change: 1 addition & 0 deletions tests/test_variables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest

from twill import parse

from .utils import execute_script
Expand Down

0 comments on commit befe56a

Please sign in to comment.