From 0a7995c08d4f99f6457afe60f7ea112f57017c61 Mon Sep 17 00:00:00 2001 From: "Og B. Maciel" Date: Tue, 26 Mar 2024 18:43:19 -0400 Subject: [PATCH] Ran black against code. --- fauxfactory/constants.py | 1 + fauxfactory/factories/strings.py | 1 + fauxfactory/factories/systems.py | 1 + fauxfactory/helpers.py | 1 + setup.py | 1 + tests/test_booleans.py | 1 + tests/test_dir.py | 1 - tests/test_domain.py | 1 + tests/test_getattr.py | 1 + tests/test_strings.py | 1 + tests/test_system_helpers.py | 1 + tests/test_utils.py | 1 + 12 files changed, 11 insertions(+), 1 deletion(-) diff --git a/fauxfactory/constants.py b/fauxfactory/constants.py index 3182fd3..cd892f1 100644 --- a/fauxfactory/constants.py +++ b/fauxfactory/constants.py @@ -6,6 +6,7 @@ example, a CIDR of "/1" corresponds to `VALID_NETMASKS[1]`. """ + # The above constant descriptions can be found by Sphinx and via help(). import datetime import json diff --git a/fauxfactory/factories/strings.py b/fauxfactory/factories/strings.py index d5e4137..2c06685 100644 --- a/fauxfactory/factories/strings.py +++ b/fauxfactory/factories/strings.py @@ -1,4 +1,5 @@ """Collection of string generating functions.""" + import random import string diff --git a/fauxfactory/factories/systems.py b/fauxfactory/factories/systems.py index a72cbe4..db22790 100644 --- a/fauxfactory/factories/systems.py +++ b/fauxfactory/factories/systems.py @@ -1,4 +1,5 @@ """Collection of computer systems generating functions.""" + from copy import deepcopy from fauxfactory.constants import FACTS_JSON diff --git a/fauxfactory/helpers.py b/fauxfactory/helpers.py index 8c3a0e4..5987d63 100644 --- a/fauxfactory/helpers.py +++ b/fauxfactory/helpers.py @@ -1,4 +1,5 @@ """Collection of helper methods and functions.""" + import re import unicodedata diff --git a/setup.py b/setup.py index 3ec84ae..5ddc3b1 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ """A setuptools-based script for installing FauxFactory.""" + # setuptools is preferred over distutils. import codecs import os diff --git a/tests/test_booleans.py b/tests/test_booleans.py index dd23e33..017b86c 100644 --- a/tests/test_booleans.py +++ b/tests/test_booleans.py @@ -1,4 +1,5 @@ """Tests for all boolean generators.""" + import pytest from fauxfactory import gen_boolean diff --git a/tests/test_dir.py b/tests/test_dir.py index 54dbf00..15bcdbb 100644 --- a/tests/test_dir.py +++ b/tests/test_dir.py @@ -3,7 +3,6 @@ These tests are heavily just artificial tests to get 100% coverage. """ - import os import os.path import fauxfactory.factories diff --git a/tests/test_domain.py b/tests/test_domain.py index b96e2e3..1fd722d 100644 --- a/tests/test_domain.py +++ b/tests/test_domain.py @@ -1,4 +1,5 @@ """Tests for domain generator.""" + from fauxfactory import gen_domain diff --git a/tests/test_getattr.py b/tests/test_getattr.py index 96487be..e72712e 100644 --- a/tests/test_getattr.py +++ b/tests/test_getattr.py @@ -2,6 +2,7 @@ These tests are heavily just artificial tests to get 100% coverage. """ + import fauxfactory import pytest diff --git a/tests/test_strings.py b/tests/test_strings.py index cd54fda..fa99bfb 100644 --- a/tests/test_strings.py +++ b/tests/test_strings.py @@ -1,4 +1,5 @@ """Tests for all string generators.""" + import string import unicodedata from random import randint diff --git a/tests/test_system_helpers.py b/tests/test_system_helpers.py index 5632724..5baf0c5 100644 --- a/tests/test_system_helpers.py +++ b/tests/test_system_helpers.py @@ -1,4 +1,5 @@ """Tests for system facts helpers.""" + import pytest from fauxfactory.factories.systems import ( diff --git a/tests/test_utils.py b/tests/test_utils.py index 8c27c52..2f78e88 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,5 @@ """Unittests for all methods found in `utils.py`.""" + import pytest from fauxfactory.helpers import is_positive_int