Skip to content

Commit

Permalink
Handle isort 5.X upgrade (#1230)
Browse files Browse the repository at this point in the history
* Fix recent isort failures

* Fix isort issues
  • Loading branch information
malefice authored and fcurella committed Aug 4, 2020
1 parent 2ea9456 commit ad871fc
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
1 change: 0 additions & 1 deletion faker/providers/job/bs_BA/__init__.py
@@ -1,6 +1,5 @@
from .. import Provider as BaseProvider


"""
Data is provided by the official list of professions from
National institue for statistics
Expand Down
1 change: 0 additions & 1 deletion faker/providers/ssn/nl_BE/__init__.py
@@ -1,6 +1,5 @@
from .. import Provider as SsnProvider


"""
For more info on rijksregisternummer, see https://nl.wikipedia.org/wiki/Rijksregisternummer
Dutch/French only for now ...
Expand Down
3 changes: 2 additions & 1 deletion tests/providers/test_address.py
@@ -1,6 +1,8 @@
import re
import unittest

from ukpostcodeparser.parser import parse_uk_postcode

from faker import Faker
from faker.providers.address.de_AT import Provider as DeAtProvider
from faker.providers.address.de_DE import Provider as DeProvider
Expand All @@ -17,7 +19,6 @@
from faker.providers.address.ja_JP import Provider as JaProvider
from faker.providers.address.ne_NP import Provider as NeProvider
from faker.providers.address.pt_PT import Provider as PtPtProvider
from ukpostcodeparser.parser import parse_uk_postcode


class TestBaseProvider(unittest.TestCase):
Expand Down
1 change: 1 addition & 0 deletions tests/providers/test_date_time.py
Expand Up @@ -159,6 +159,7 @@ def test_pytimezone_usable(self):

def test_datetime_safe(self):
from faker.utils import datetime_safe

# test using example provided in module
result = datetime_safe.date(1850, 8, 2).strftime('%Y/%m/%d was a %A')
assert result == '1850/08/02 was a Friday'
Expand Down
5 changes: 3 additions & 2 deletions tests/providers/test_internet.py
Expand Up @@ -6,14 +6,15 @@

import pytest

from validators import domain as validate_domain
from validators import email as validate_email

from faker.providers.internet import Provider as InternetProvider
from faker.providers.internet.en_GB import Provider as EnGbInternetProvider
from faker.providers.internet.pl_PL import Provider as PlPlInternetProvider
from faker.providers.internet.zh_CN import Provider as ZhCnInternetProvider
from faker.providers.person.ja_JP import Provider as JaPersonProvider
from faker.utils import text
from validators import domain as validate_domain
from validators import email as validate_email


class TestInternetProvider:
Expand Down
7 changes: 4 additions & 3 deletions tests/providers/test_ssn.py
Expand Up @@ -8,6 +8,10 @@
import pytest
import random2

from validators.i18n.es import es_cif as is_cif
from validators.i18n.es import es_nie as is_nie
from validators.i18n.es import es_nif as is_nif

from faker import Faker
from faker.providers.ssn.en_CA import checksum as ca_checksum
from faker.providers.ssn.es_MX import curp_checksum as mx_curp_checksum
Expand All @@ -21,9 +25,6 @@
from faker.providers.ssn.pl_PL import checksum as pl_checksum
from faker.providers.ssn.pt_BR import checksum as pt_checksum
from faker.utils.checksums import luhn_checksum
from validators.i18n.es import es_cif as is_cif
from validators.i18n.es import es_nie as is_nie
from validators.i18n.es import es_nif as is_nif


class TestSvSE(unittest.TestCase):
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -36,7 +36,7 @@ commands =
deps =
isort
commands =
{envpython} -m isort --check-only --diff
{envpython} -m isort --check-only --diff .

[testenv:32bit]
basepython = python
Expand Down

0 comments on commit ad871fc

Please sign in to comment.