Skip to content

Commit

Permalink
chore: add isort to pre-commit
Browse files Browse the repository at this point in the history
https://pycqa.github.io/isort/index.html

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Dec 23, 2021
1 parent 8921ea8 commit ae04ce8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ repos:
rev: '4.0.1'
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ socket = 'pytest_socket'
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/miketheman/pytest-socket/issues"

[tool.isort]
known_first_party = ['pytest_socket', 'conftest', 'test_socket']

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
1 change: 1 addition & 0 deletions pytest_socket.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import socket

import pytest

_true_socket = socket.socket
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import pytest


pytest_plugins = 'pytester'


Expand Down
1 change: 0 additions & 1 deletion tests/test_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from conftest import unix_sockets_only


PYFILE_SOCKET_USED_IN_TEST_ARGS = """
import socket
Expand Down

0 comments on commit ae04ce8

Please sign in to comment.