Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ni_python_styleguide/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ line-length = 100
[tool.isort]
profile = "black"
combine_as_imports = true
force_single_line = true
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "ni-python-styleguide"
# The -alpha.0 here denotes a source based version
# This is removed when released through the Publish-Package.yml GitHub action
# Official PyPI releases follow Major.Minor.Patch
version = "0.3.0-alpha.0"
version = "0.4.0-alpha.0"
description = "NI's internal and external Python linter rules and plugins"
authors = ["NI <opensource@ni.com>"]
readme = "README.md" # apply the repo readme to the package as well
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
"""Provide example cases of imports that need sorting and a file that needs formatted."""
import pathlib
from os import access
from os import path
from os import access, path
from typing import ( # noqa F401: un-used import comment that is actually used, should get removed in --aggressive (auto-generated noqa)
Hashable,
)
from typing import Iterable
from typing import List
from typing import Iterable, List

import pytest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
"""Provide example cases of imports that need sorting and a file that needs formatted."""
import pathlib
from os import access
from os import path
from typing import Hashable
from typing import Iterable
from typing import List
from os import access, path
from typing import Hashable, Iterable, List

import pytest

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import logging
import pathlib
from collections import defaultdict
from typing import Iterable
from typing import List
from typing import Iterable, List

import isort

from ni_python_styleguide import _format
from ni_python_styleguide import _utils
from ni_python_styleguide import _format, _utils
from ni_python_styleguide._acknowledge_existing_errors import _lint_errors_parser

_module_logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import logging
import pathlib
from collections import defaultdict
from typing import Iterable
from typing import List
from typing import Iterable, List

import isort

from ni_python_styleguide import _format
from ni_python_styleguide import _utils
from ni_python_styleguide import _format, _utils
from ni_python_styleguide._acknowledge_existing_errors import _lint_errors_parser

_module_logger = logging.getLogger(__name__)
Expand Down