diff --git a/MANIFEST.in b/MANIFEST.in index d135714..593729c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -20,5 +20,6 @@ include requirements.txt include .pyup.yml include *.json include *.sh +include *.toml global-exclude *.py[cod] __pycache__ *.so *.dylib .github .github/* diff --git a/src/octokit/__init__.py b/src/octokit/__init__.py index 44707f7..865946c 100644 --- a/src/octokit/__init__.py +++ b/src/octokit/__init__.py @@ -3,9 +3,10 @@ import re from collections import defaultdict import requests +from octokit_routes import specifications + from octokit import utils from octokit.base import Base -from octokit_routes import specifications page_regex = re.compile(r'[\?\&]page=(\d+)[_&=%+\w\d]*>; rel="(\w+)"') diff --git a/src/octokit/base.py b/src/octokit/base.py index c11948e..7708f67 100644 --- a/src/octokit/base.py +++ b/src/octokit/base.py @@ -7,6 +7,7 @@ from collections import defaultdict import requests from jose import jwt + from octokit import errors from octokit import utils diff --git a/tests/test_auth.py b/tests/test_auth.py index 093c24b..16bec66 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -4,6 +4,7 @@ from collections import namedtuple import pytest import requests + from octokit import Octokit diff --git a/tests/test_methods.py b/tests/test_methods.py index ec0fba0..dec14e2 100644 --- a/tests/test_methods.py +++ b/tests/test_methods.py @@ -3,6 +3,7 @@ from collections import namedtuple import pytest import requests + from octokit import Octokit from octokit import errors diff --git a/tests/test_validation.py b/tests/test_validation.py index 12ee1d3..c190901 100644 --- a/tests/test_validation.py +++ b/tests/test_validation.py @@ -1,4 +1,5 @@ import pytest + from octokit import errors from octokit.base import Base diff --git a/tox.ini b/tox.ini index 5d6a2fc..f3eb606 100644 --- a/tox.ini +++ b/tox.ini @@ -49,11 +49,11 @@ deps = readme-renderer pygments isort - black==19.3b0 + black skip_install = true commands = python setup.py check --strict --metadata --restructuredtext check-manifest {toxinidir} flake8 src tests setup.py - isort --verbose --check-only --diff --recursive src tests setup.py + isort --verbose --check-only --diff src tests setup.py black -t py36 --check --verbose src tests setup.py