diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 280520290..13f83288c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,16 +5,16 @@ ci: repos: - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.4.0 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.1 + rev: v0.3.7 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v4.6.0 hooks: - id: check-yaml - id: debug-statements diff --git a/airgun/browser.py b/airgun/browser.py index 195f7d480..c3bcbacb5 100644 --- a/airgun/browser.py +++ b/airgun/browser.py @@ -1,6 +1,7 @@ """Tools to help getting selenium and widgetastic browser instance to run UI tests. """ + import base64 from contextlib import contextmanager from datetime import datetime diff --git a/airgun/exceptions.py b/airgun/exceptions.py index be67a7adc..5e1600243 100644 --- a/airgun/exceptions.py +++ b/airgun/exceptions.py @@ -1,4 +1,5 @@ """Exceptions raised by airgun""" + from selenium.common.exceptions import InvalidElementStateException from widgetastic.exceptions import * # noqa: F403 diff --git a/airgun/fixtures.py b/airgun/fixtures.py index 3e9a5853c..660179924 100644 --- a/airgun/fixtures.py +++ b/airgun/fixtures.py @@ -5,6 +5,7 @@ pytest_plugins = ["airgun.fixtures"] """ + import pytest from airgun.session import Session diff --git a/airgun/navigation.py b/airgun/navigation.py index 69466e32b..c6f8e27de 100644 --- a/airgun/navigation.py +++ b/airgun/navigation.py @@ -1,4 +1,5 @@ """AirGun's implementation of base navigation and navigate steps.""" + from cached_property import cached_property import navmazing from selenium.common.exceptions import NoSuchElementException diff --git a/airgun/session.py b/airgun/session.py index 59f608b9a..e9aef0949 100644 --- a/airgun/session.py +++ b/airgun/session.py @@ -1,4 +1,5 @@ """Session controller which manages UI session""" + from datetime import datetime import logging import os diff --git a/docs/conf.py b/docs/conf.py index f2b6c85d2..287d5af58 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -4,6 +4,7 @@ http://sphinx-doc.org/config.html """ + import os import sys