diff --git a/poetry.lock b/poetry.lock index e743266..f1b92a8 100644 --- a/poetry.lock +++ b/poetry.lock @@ -186,6 +186,24 @@ files = [ domdf-python-tools = ">=2.0.0" flake8 = ">=3.8.4" +[[package]] +name = "flake8-isort" +version = "6.1.1" +description = "flake8 plugin that integrates isort" +optional = false +python-versions = ">=3.8" +files = [ + {file = "flake8_isort-6.1.1-py3-none-any.whl", hash = "sha256:0fec4dc3a15aefbdbe4012e51d5531a2eb5fa8b981cdfbc882296a59b54ede12"}, + {file = "flake8_isort-6.1.1.tar.gz", hash = "sha256:c1f82f3cf06a80c13e1d09bfae460e9666255d5c780b859f19f8318d420370b3"}, +] + +[package.dependencies] +flake8 = "*" +isort = ">=5.0.0,<6" + +[package.extras] +test = ["pytest"] + [[package]] name = "importlib-metadata" version = "7.0.0" @@ -234,6 +252,20 @@ files = [ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, ] +[[package]] +name = "isort" +version = "5.13.2" +description = "A Python utility / library to sort Python imports." +optional = false +python-versions = ">=3.8.0" +files = [ + {file = "isort-5.13.2-py3-none-any.whl", hash = "sha256:8ca5e72a8d85860d5a3fa69b8745237f2939afe12dbf656afbcb47fe72d947a6"}, + {file = "isort-5.13.2.tar.gz", hash = "sha256:48fdfcb9face5d58a4f6dde2e72a1fb8dcaf8ab26f95ab49fab84c2ddefb0109"}, +] + +[package.extras] +colors = ["colorama (>=0.4.6)"] + [[package]] name = "mccabe" version = "0.7.0" @@ -668,4 +700,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.8" -content-hash = "9e6c5b33819d058b5a98c7aa6aac4be37f15ebccb7252822d346cb016e5f4379" +content-hash = "3bb9d8a19bd92e6ab6f7bd51744aab8d3bf331bb7f6fa4720f5f15987f533e64" diff --git a/pyproject.toml b/pyproject.toml index 0c2e578..76c2231 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ black = "^22.6.0" flake8 = "^5.0.4" flake8-black = "^0.3.3" flake8-github-actions = "^0.1.0" +flake8-isort = "^6.1.1" pytest = "^7.2.1" pytest-django = "^4.1.0" pytest-randomly = "^3.5.0" diff --git a/src/devdata/management/commands/devdata_export.py b/src/devdata/management/commands/devdata_export.py index 4252ed9..08b6d9b 100644 --- a/src/devdata/management/commands/devdata_export.py +++ b/src/devdata/management/commands/devdata_export.py @@ -7,8 +7,8 @@ from ...engine import ( export_data, - export_migration_state, export_extras, + export_migration_state, validate_strategies, ) diff --git a/src/devdata/management/commands/devdata_import.py b/src/devdata/management/commands/devdata_import.py index 402e8ad..7232fd5 100644 --- a/src/devdata/management/commands/devdata_import.py +++ b/src/devdata/management/commands/devdata_import.py @@ -8,8 +8,8 @@ from ...engine import ( import_cleanup, import_data, - import_schema, import_extras, + import_schema, validate_strategies, ) from ...reset_modes import MODES, DropDatabaseReset diff --git a/tests/test_basic.py b/tests/test_basic.py index c52092b..c5cc5f4 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -1,7 +1,7 @@ from __future__ import annotations -import json import datetime +import json import pytest from django.db import connections