Skip to content

Commit

Permalink
isort legate use its own setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Apr 26, 2023
1 parent bf223ea commit 960ec3d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ repos:
rev: 5.12.0
hooks:
- id: isort
# Use the config file specific to each subproject so that each
# project can specify its own first/third-party packages.
args: ["--config-root=python/", "--resolve-all-configs"]
files: (python|legate)/.*
files: python/.*
types_or: [python, cython, pyi]
- id: isort
args: ["--config-root=legate/", "--resolve-all-configs"]
files: legate/.*
types_or: [python, cython, pyi]
- repo: https://github.com/psf/black
rev: 22.12.0
Expand Down
2 changes: 1 addition & 1 deletion legate/benchmarks/single-node-io.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

import cunumeric as num
from dask.utils import format_bytes, parse_bytes
from legate_kvikio import CuFile

import kvikio
import kvikio.defaults
import legate.core
from legate_kvikio import CuFile

runtime = legate.core.get_legate_runtime()

Expand Down
2 changes: 1 addition & 1 deletion legate/benchmarks/zarr_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def f():
@contextlib.contextmanager
def run_legate(args):
import cunumeric as num
from legate_kvikio.zarr import read_array

from legate.core import get_legate_runtime
from legate_kvikio.zarr import read_array

def f():
get_legate_runtime().issue_execution_fence(block=True)
Expand Down
2 changes: 1 addition & 1 deletion legate/examples/basic_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# See file LICENSE for terms.

import cunumeric as num
import legate_kvikio as kvikio

import legate_kvikio as kvikio
from legate.core import get_legate_runtime


Expand Down
3 changes: 1 addition & 2 deletions legate/legate_kvikio/library_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
from enum import IntEnum
from typing import Any

from legate_kvikio.install_info import header, libpath

from legate.core import Library, ResourceConfig, get_legate_runtime
from legate_kvikio.install_info import header, libpath


class LibraryDescription(Library):
Expand Down
4 changes: 2 additions & 2 deletions legate/tests/test_basic_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
import math

import pytest
from legate_kvikio import CuFile
from legate_kvikio.tile import read_tiles, write_tiles

from legate.core import get_legate_runtime
from legate_kvikio import CuFile
from legate_kvikio.tile import read_tiles, write_tiles

num = pytest.importorskip("cunumeric")

Expand Down
2 changes: 1 addition & 1 deletion legate/tests/test_zarr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import numpy as np
import pytest
from legate_kvikio.zarr import read_array, write_array
from numpy.testing import assert_array_equal

from legate.core import get_legate_runtime
from legate_kvikio.zarr import read_array, write_array

num = pytest.importorskip("cunumeric")
zarr = pytest.importorskip("zarr")
Expand Down

0 comments on commit 960ec3d

Please sign in to comment.