Skip to content

Commit

Permalink
Fix pylint style errors
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Jul 23, 2020
1 parent b69987f commit 5e4d419
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ function-naming-style=snake_case
good-names=i,
j,
k,
df,
ex,
Run,
_,
Expand Down
17 changes: 10 additions & 7 deletions pygmt/tests/test_x2sys_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@

import pandas as pd
import pytest
import xarray as xr

from .. import which, x2sys_cross, x2sys_init
from ..datasets import load_sample_bathymetry
from ..exceptions import GMTInvalidInput
from ..helpers import data_kind

# from ..datasets import load_sample_bathymetry
# from ..exceptions import GMTInvalidInput

@pytest.fixture
def mock_x2sys_home(monkeypatch):

@pytest.fixture(name="mock_x2sys_home")
def fixture_mock_x2sys_home(monkeypatch):
"""
Set the X2SYS_HOME environment variable to the current working directory
for the test session
"""
monkeypatch.setenv("X2SYS_HOME", os.getcwd())


def test_x2sys_cross_input_file(mock_x2sys_home):
def test_x2sys_cross_input_file(mock_x2sys_home): # pylint: disable=unused-argument
"""
Run x2sys_cross by passing in a filename
"""
Expand Down
4 changes: 2 additions & 2 deletions pygmt/x2sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
GMT supplementary X2SYS module for crossover analysis.
"""
import pandas as pd
import xarray as xr

from .clib import Session
from .helpers import (
Expand All @@ -13,7 +12,8 @@
data_kind,
dummy_context,
)
from .exceptions import GMTInvalidInput

# from .exceptions import GMTInvalidInput


@fmt_docstring
Expand Down

0 comments on commit 5e4d419

Please sign in to comment.