Skip to content

Commit

Permalink
Please linting
Browse files Browse the repository at this point in the history
  • Loading branch information
noklam committed Nov 13, 2023
1 parent d75940f commit 7963f2d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pandera/api/pandas/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import copy
import warnings
from typing import Any, List, Optional, TypeVar, Union, cast
from pandera.config import CONFIG
import pandas as pd

from pandera import errors
Expand All @@ -12,6 +11,7 @@
from pandera.api.checks import Check
from pandera.api.hypotheses import Hypothesis
from pandera.api.pandas.types import CheckList, PandasDtypeInputTypes, is_field
from pandera.config import CONFIG
from pandera.dtypes import DataType, UniqueSettings
from pandera.engines import pandas_engine, PYDANTIC_V2

Expand Down
14 changes: 8 additions & 6 deletions tests/core/test_pandas_config.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
"""This module is to test the behaviour change based on defined config in pandera"""
# pylint:disable=import-outside-toplevel,abstract-method
# pylint:disable=import-outside-toplevel,abstract-method,redefined-outer-name


import pandera as pa
from pandera.config import CONFIG, ValidationDepth
import pandas as pd
from pandera import DataFrameModel, DataFrameSchema, SeriesSchema
import pytest

import pandera as pa
from pandera import DataFrameModel, DataFrameSchema, SeriesSchema
from pandera.config import CONFIG, ValidationDepth


@pytest.fixture()
def disable_validation():
"""Fixture to disable validation and clean up after the test is finished"""
CONFIG.validation_enabled = False
yield "resource"
CONFIG.validation_enabled = True
Expand All @@ -22,7 +24,7 @@ class TestPandasDataFrameConfig:
sample_data = pd.DataFrame(
(("Bread", 9), ("Cutter", 15)), columns=["product", "price_val"]
)

# pylint: disable=unused-argument
def test_disable_validation(self, disable_validation):
"""This function validates that a none object is loaded if validation is disabled"""

Expand Down Expand Up @@ -55,7 +57,7 @@ class TestPandasSeriesConfig:
"""Class to test all the different configs types"""

sample_data = pd.Series([1, 1, 2, 2, 3, 3])

# pylint: disable=unused-argument
def test_disable_validation(self, disable_validation):
"""This function validates that a none object is loaded if validation is disabled"""
expected = {
Expand Down

0 comments on commit 7963f2d

Please sign in to comment.