From 20139fd7960280a4a72362f1e1785d3ee6285085 Mon Sep 17 00:00:00 2001 From: Ted Turocy Date: Tue, 20 Aug 2024 16:54:20 +0100 Subject: [PATCH] Update ruff version in pre-commit hook. --- .pre-commit-config.yaml | 2 +- tests/test_actions.py | 3 ++- tests/test_behav.py | 3 ++- tests/test_extensive.py | 3 ++- tests/test_game.py | 3 ++- tests/test_infosets.py | 3 ++- tests/test_mixed.py | 3 ++- tests/test_outcomes.py | 3 ++- tests/test_players.py | 3 ++- tests/test_strategic.py | 3 ++- tests/test_stratprofiles.py | 3 ++- 11 files changed, 21 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6c78b4416..3a601efac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.13 + rev: v0.6.1 hooks: - id: ruff - repo: https://github.com/pycqa/flake8 diff --git a/tests/test_actions.py b/tests/test_actions.py index e232c5c01..10d55ca35 100644 --- a/tests/test_actions.py +++ b/tests/test_actions.py @@ -1,6 +1,7 @@ -import pygambit as gbt import pytest +import pygambit as gbt + from . import games diff --git a/tests/test_behav.py b/tests/test_behav.py index 0db572947..6636cf04c 100644 --- a/tests/test_behav.py +++ b/tests/test_behav.py @@ -1,9 +1,10 @@ import typing from itertools import product -import pygambit as gbt import pytest +import pygambit as gbt + from . import games TOL = 1e-13 # tolerance for floating point assertions diff --git a/tests/test_extensive.py b/tests/test_extensive.py index 478dc5b84..9fe517f8f 100644 --- a/tests/test_extensive.py +++ b/tests/test_extensive.py @@ -1,8 +1,9 @@ import typing -import pygambit as gbt import pytest +import pygambit as gbt + from . import games diff --git a/tests/test_game.py b/tests/test_game.py index 2b7ba1732..37e851fc7 100644 --- a/tests/test_game.py +++ b/tests/test_game.py @@ -1,7 +1,8 @@ import numpy as np -import pygambit as gbt import pytest +import pygambit as gbt + from . import games diff --git a/tests/test_infosets.py b/tests/test_infosets.py index e4cc7056d..9d9c96495 100644 --- a/tests/test_infosets.py +++ b/tests/test_infosets.py @@ -1,6 +1,7 @@ -import pygambit as gbt import pytest +import pygambit as gbt + from . import games diff --git a/tests/test_mixed.py b/tests/test_mixed.py index 7eb7a52f3..43dd8a09b 100644 --- a/tests/test_mixed.py +++ b/tests/test_mixed.py @@ -1,9 +1,10 @@ import typing from itertools import product -import pygambit as gbt import pytest +import pygambit as gbt + from . import games TOL = 1e-13 # tolerance for floating point assertions diff --git a/tests/test_outcomes.py b/tests/test_outcomes.py index b3a3f4dde..aa7d50670 100644 --- a/tests/test_outcomes.py +++ b/tests/test_outcomes.py @@ -1,6 +1,7 @@ -import pygambit as gbt import pytest +import pygambit as gbt + @pytest.mark.parametrize( "game", [gbt.Game.new_table([2, 2]), gbt.Game.new_tree()] diff --git a/tests/test_players.py b/tests/test_players.py index 7fd35e360..4597a5226 100644 --- a/tests/test_players.py +++ b/tests/test_players.py @@ -1,6 +1,7 @@ -import pygambit as gbt import pytest +import pygambit as gbt + from . import games diff --git a/tests/test_strategic.py b/tests/test_strategic.py index 06352fb3f..c8ab47d09 100644 --- a/tests/test_strategic.py +++ b/tests/test_strategic.py @@ -1,6 +1,7 @@ -import pygambit as gbt import pytest +import pygambit as gbt + from . import games diff --git a/tests/test_stratprofiles.py b/tests/test_stratprofiles.py index 746d8d291..34785949e 100644 --- a/tests/test_stratprofiles.py +++ b/tests/test_stratprofiles.py @@ -1,6 +1,7 @@ -import pygambit as gbt import pytest +import pygambit as gbt + from . import games