Skip to content

Commit 442d783

Browse files
jmeridthpre-commit-ci[bot]sigmavirus24
authored
Switch to isort from reorder-python-imports
* chore: switch to isort from reorder python imports - [x] keep it simple with just `--profile black` argument - [x] update pull_request_template when asking for python-dateutil version - some engineers don't know to prefix `dateutil` with `python-` This is a premptive strike on sigmavirus24#1172 fix Signed-off-by: jmeridth <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: add line-length to isort to match black re-run black, hopefully get us to a non-conflict Signed-off-by: jmeridth <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Use isort config to reduce churn --------- Signed-off-by: jmeridth <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Ian Stapleton Cordasco <[email protected]>
1 parent 15df624 commit 442d783

File tree

111 files changed

+212
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+212
-129
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ repos:
1313
- id: trailing-whitespace
1414
types: [text]
1515
stages: [commit, push, manual]
16-
- repo: https://github.com/asottile/reorder-python-imports
17-
rev: v3.12.0
16+
- repo: https://github.com/PyCQA/isort
17+
rev: 5.13.2
1818
hooks:
19-
- id: reorder-python-imports
20-
args: [--application-directories, '.:src', --py37-plus]
19+
- id: isort
2120
- repo: https://github.com/psf/black
2221
rev: 23.12.1
2322
hooks:

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,8 @@ exclude = [
9393
"^docs/",
9494
"^tests/",
9595
]
96+
97+
[tool.isort]
98+
profile = "black"
99+
line_length = 78
100+
force_single_line = true

src/github3/__about__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The module that holds much of the metadata about github3.py."""
2+
23
__package_name__ = "github3.py"
34
__title__ = "github3"
45
__author__ = "Ian Stapleton Cordasco"

src/github3/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
:license: Modified BSD, see LICENSE for more details
99
1010
"""
11+
1112
from .__about__ import __author__
1213
from .__about__ import __author_email__
1314
from .__about__ import __copyright__

src/github3/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
:license: Modified BSD, see LICENSE for more details
77
88
"""
9+
910
from .github import GitHub
1011
from .github import GitHubEnterprise
1112

src/github3/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
https://developer.github.com/apps/building-github-apps/
44
"""
5+
56
import time
67

78
import jwt

src/github3/auths.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains the Authorization object."""
2+
23
from .decorators import requires_basic_auth
34
from .models import GitHubCore
45

src/github3/checks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module contains all the classes relating to Checks."""
2+
23
from json import dumps
34

45
from . import decorators

src/github3/decorators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This module provides decorators to the rest of the library."""
2+
23
import os
34
from functools import wraps
45
from io import BytesIO as StringIO

0 commit comments

Comments
 (0)