Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Ran pre-commit to populate .isort.cfg and let isort run against the r…
Browse files Browse the repository at this point in the history
…epository.
  • Loading branch information
mcdonnnj committed Dec 23, 2019
1 parent e7ab225 commit 5b605a9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .isort.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import_heading_thirdparty=Third-Party Libraries
import_heading_firstparty=cisagov Libraries

# Should be auto-populated by seed-isort-config hook
known_third_party=
known_third_party=docopt,pkg_resources,pytest,setuptools
# These must be manually set to correctly separate them from third party libraries
known_first_party=
known_first_party=example
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
- https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure
"""

# Standard Python Libraries
from glob import glob
from os.path import splitext, basename
from os.path import basename, splitext

from setuptools import setup, find_packages
# Third-Party Libraries
from setuptools import find_packages, setup


def readme():
Expand Down
2 changes: 1 addition & 1 deletion src/example/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""The example library."""
from .example import example_div
from ._version import __version__ # noqa: F401
from .example import example_div

__all__ = ["example_div"]
2 changes: 2 additions & 0 deletions src/example/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
"warning", "error", and "critical". [default: warning]
"""

# Standard Python Libraries
import logging
import os
import sys

# Third-Party Libraries
import docopt
import pkg_resources

Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
https://docs.pytest.org/en/latest/writing_plugins.html#conftest-py-plugins
"""
# Third-Party Libraries
import pytest


Expand Down
3 changes: 3 additions & 0 deletions tests/test_example.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/usr/bin/env pytest -vs
"""Tests for example."""

# Standard Python Libraries
import logging
import os
import sys
from unittest.mock import patch

# Third-Party Libraries
import pytest

# cisagov Libraries
import example

div_params = [
Expand Down

0 comments on commit 5b605a9

Please sign in to comment.