Skip to content

Commit

Permalink
Add: Use isort to format Python imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Apr 20, 2023
1 parent 4e9e7fe commit 9d85142
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autohooks/plugins/pylint/pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import subprocess
import sys
from typing import List, Union, Iterable, Optional
from typing import Iterable, List, Optional, Union

from autohooks.api import error, ok, out
from autohooks.api.git import get_staged_status, stash_unstaged_changes
Expand Down
20 changes: 19 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ coverage = "^7.2.3"
mypy = ">=0.981"
pontos = ">=22.8.1"
autohooks-plugin-black = ">=22.7.0"
autohooks-plugin-isort = ">=22.8.0"

[tool.black]
line-length = 80
Expand All @@ -73,14 +74,16 @@ exclude = '''
)/
'''

[tool.isort]
profile = "black"
line_length = 80

[tool.autohooks]
mode = "poetry"
pre-commit = ['autohooks.plugins.black', 'autohooks.plugins.pylint']

pre-commit = ['autohooks.plugins.black', 'autohooks.plugins.isort', 'autohooks.plugins.pylint']

[tool.pontos.version]
version-module-file = "autohooks/plugins/pylint/__version__.py"


[tool.mypy]
ignore_missing_imports = true

0 comments on commit 9d85142

Please sign in to comment.