Skip to content

Commit

Permalink
passify ruff
Browse files Browse the repository at this point in the history
Sort includes per I001 in ruff 0.3.7 (at least on my mac), but disable
the rule because CI currently dislikes both ordering.
  • Loading branch information
brooksdavis committed Apr 17, 2024
1 parent a8c5575 commit 63b1c2b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/test_async_delete.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import subprocess
import subprocess # noqa: I001
import tempfile
import time
import unittest
from pathlib import Path
from unittest import TestCase

from .setup_mock_chericonfig import MockConfig, setup_mock_chericonfig
from pycheribuild.config.compilation_targets import CompilationTargets
from pycheribuild.projects.project import DefaultInstallDir, ExternallyManagedSourceRepository, Project
from .setup_mock_chericonfig import MockConfig, setup_mock_chericonfig


# noinspection PyTypeChecker
Expand Down
4 changes: 2 additions & 2 deletions tests/test_project_helpers.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import re
import re # noqa: I001
from pathlib import Path

import pytest

from .setup_mock_chericonfig import CheriConfig, setup_mock_chericonfig
from pycheribuild.config.target_info import BasicCompilationTargets, DefaultInstallDir
from pycheribuild.projects.cmake_project import CMakeProject
from pycheribuild.projects.repository import ExternallyManagedSourceRepository
from pycheribuild.targets import target_manager
from .setup_mock_chericonfig import CheriConfig, setup_mock_chericonfig


def test_add_cmake_option():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_target_order.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import copy
import copy # noqa: I001
import inspect

# noinspection PyUnresolvedReferences
from pathlib import Path

import pytest

from .setup_mock_chericonfig import CheriConfig, setup_mock_chericonfig
from pycheribuild.config.compilation_targets import CompilationTargets, enable_hybrid_for_purecap_rootfs_targets
from pycheribuild.config.target_info import CrossCompileTarget

Expand Down Expand Up @@ -33,7 +34,6 @@
from pycheribuild.projects.spike import RunCheriSpikeBase
from pycheribuild.projects.syzkaller import BuildSyzkaller, RunSyzkaller
from pycheribuild.targets import Target, target_manager
from .setup_mock_chericonfig import CheriConfig, setup_mock_chericonfig


# noinspection PyProtectedMember
Expand Down

0 comments on commit 63b1c2b

Please sign in to comment.