Skip to content

Commit 45d361a

Browse files
Style: Black and Codespell
1 parent 6bcfe69 commit 45d361a

File tree

14 files changed

+21
-4
lines changed

14 files changed

+21
-4
lines changed

.codespellrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[codespell]
2-
skip = .git/*
2+
skip = .git/*,*.pdf

data_validation_framework/report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Specific tasks."""
2+
23
import copy
34
import json
45
import logging

data_validation_framework/result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Util functions."""
2+
23
import logging
34
import warnings
45
from copy import deepcopy

data_validation_framework/rst_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Some tools to generate RST files."""
2+
23
import re
34
import textwrap
45

data_validation_framework/target.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Specific targets."""
2+
23
import warnings
34

45
from luigi_tools.target import OutputLocalTarget

data_validation_framework/task.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Specific tasks."""
2+
23
import logging
34
import sys
45
import time
@@ -19,7 +20,11 @@
1920
from luigi_tools.parameter import OptionalBoolParameter
2021
from luigi_tools.task import LogTargetMixin
2122
from luigi_tools.task import RerunMixin
22-
from numpy import VisibleDeprecationWarning
23+
24+
try:
25+
from numpy import VisibleDeprecationWarning
26+
except ImportError:
27+
from numpy.exceptions import VisibleDeprecationWarning
2328

2429
from data_validation_framework.report import make_report
2530
from data_validation_framework.result import ValidationResult
@@ -39,7 +44,7 @@ class ValidationError(Exception):
3944

4045

4146
class TagResultOutputMixin:
42-
"""Initialize target prefixes and optionally add a tag to the resut directory.
47+
"""Initialize target prefixes and optionally add a tag to the result directory.
4348
4449
.. warning::
4550
@@ -163,7 +168,7 @@ def inputs(self):
163168
data_dir = OptionalStrParameter(
164169
default="data",
165170
description=(
166-
":str: name of folder to store addittional files created by a task (the provided "
171+
":str: name of folder to store additional files created by a task (the provided "
167172
"validation function must take this as argument)."
168173
),
169174
)

data_validation_framework/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Util functions."""
2+
23
import contextlib
34
import logging
45
import multiprocessing

tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests suite for the data-validation-framework package."""
2+
23
import re
34
from pathlib import Path
45

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Configuration for the pytest test suite."""
2+
23
# pylint: disable=missing-function-docstring
34
import os
45
from pathlib import Path

tests/test_result.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the data_validation_framework.result module."""
2+
23
import pandas as pd
34
import pytest
45

0 commit comments

Comments
 (0)