Skip to content

Commit 6e77f5e

Browse files
absolufy-imports - No relative imports - PEP8 (#7204)
* absolufy imports * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commit ee9db08. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commit 66af1c3. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Revert "[pre-commit.ci] auto fixes from pre-commit.com hooks" This reverts commit 55dfefa. * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update whats-new.rst Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ed60c6c commit 6e77f5e

File tree

121 files changed

+903
-808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+903
-808
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ repos:
88
- id: check-yaml
99
- id: debug-statements
1010
- id: mixed-line-ending
11+
- repo: https://github.com/MarcoGorelli/absolufy-imports
12+
rev: v0.3.1
13+
hooks:
14+
- id: absolufy-imports
15+
name: absolufy-imports
1116
# This wants to go before isort & flake8
1217
- repo: https://github.com/PyCQA/autoflake
1318
rev: "v2.0.0"

asv_bench/benchmarks/dataarray_missing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import pandas as pd
22

33
import xarray as xr
4-
5-
from . import parameterized, randn, requires_dask
4+
from asv_bench.benchmarks import parameterized, randn, requires_dask
65

76

87
def make_bench_data(shape, frac_nan, chunks):

asv_bench/benchmarks/dataset_io.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import pandas as pd
55

66
import xarray as xr
7-
8-
from . import _skip_slow, randint, randn, requires_dask
7+
from asv_bench.benchmarks import _skip_slow, randint, randn, requires_dask
98

109
try:
1110
import dask

asv_bench/benchmarks/groupby.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import pandas as pd
33

44
import xarray as xr
5-
6-
from . import _skip_slow, parameterized, requires_dask
5+
from asv_bench.benchmarks import _skip_slow, parameterized, requires_dask
76

87

98
class GroupBy:

asv_bench/benchmarks/indexing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
import pandas as pd
55

66
import xarray as xr
7-
8-
from . import parameterized, randint, randn, requires_dask
7+
from asv_bench.benchmarks import parameterized, randint, randn, requires_dask
98

109
nx = 2000
1110
ny = 1000

asv_bench/benchmarks/interp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import pandas as pd
33

44
import xarray as xr
5-
6-
from . import parameterized, randn, requires_dask
5+
from asv_bench.benchmarks import parameterized, randn, requires_dask
76

87
nx = 1500
98
ny = 1000

asv_bench/benchmarks/pandas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import pandas as pd
33

44
import xarray as xr
5-
6-
from . import parameterized
5+
from asv_bench.benchmarks import parameterized
76

87

98
class MultiIndexSeries:

asv_bench/benchmarks/polyfit.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import numpy as np
22

33
import xarray as xr
4-
5-
from . import parameterized, randn, requires_dask
4+
from asv_bench.benchmarks import parameterized, randn, requires_dask
65

76
NDEGS = (2, 5, 20)
87
NX = (10**2, 10**6)

asv_bench/benchmarks/reindexing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import numpy as np
22

33
import xarray as xr
4-
5-
from . import requires_dask
4+
from asv_bench.benchmarks import requires_dask
65

76
ntime = 500
87
nx = 50

asv_bench/benchmarks/rolling.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
import pandas as pd
33

44
import xarray as xr
5-
6-
from . import parameterized, randn, requires_dask
5+
from asv_bench.benchmarks import parameterized, randn, requires_dask
76

87
nx = 300
98
long_nx = 30000

0 commit comments

Comments
 (0)