Skip to content

Commit

Permalink
Fix Tox tags & update dropbox copy client (#218)
Browse files Browse the repository at this point in the history
* Fix Tox tags & update dropbox copy client
* Update travis to test newest versions of python as well
* Fix flaky linter issue
  • Loading branch information
rogebrd authored Aug 28, 2020
1 parent 5ef1a2a commit c2d568d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[MESSAGES CONTROL]
disable=C,R,file-ignored,fixme,locally-disabled,protected-access,useless-else-on-loop,unnecessary-pass
disable=C,R,file-ignored,fixme,locally-disabled,protected-access,useless-else-on-loop,unnecessary-pass,raise-missing-from
enable=useless-suppression

[REPORTS]
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ python:
- pypy
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- pypy3

install:
Expand Down
5 changes: 4 additions & 1 deletion dropbox/dropbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def _get_dropbox_client_with_select_header(self, select_header_name, team_member
new_headers = self._headers.copy() if self._headers else {}
new_headers[select_header_name] = team_member_id
return Dropbox(
self._oauth2_access_token,
oauth2_access_token=self._oauth2_access_token,
oauth2_refresh_token=self._oauth2_refresh_token,
oauth2_access_token_expiration=self._oauth2_access_token_expiration,
max_retries_on_error=self._max_retries_on_error,
Expand All @@ -737,6 +737,9 @@ def _get_dropbox_client_with_select_header(self, select_header_name, team_member
user_agent=self._raw_user_agent,
session=self._session,
headers=new_headers,
app_key=self._app_key,
app_secret=self._app_secret,
scope=self._scope,
)

class BadInputException(Exception):
Expand Down
1 change: 1 addition & 0 deletions dropbox/stone_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ def get_default(self):
class Nullable(Validator):

def __init__(self, validator):
super(Nullable, self).__init__()
assert isinstance(validator, (Primitive, Composite)), \
'validator must be for a primitive or composite type'
assert not isinstance(validator, Nullable), \
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]

envlist = py{27,34,35,36,py,py3},check,lint
envlist = py{27,34,35,36,37,38,py,py3},check,lint
skip_missing_interpreters = true

[tox:travis]
Expand All @@ -10,6 +10,8 @@ pypy = lint
3.4 = lint
3.5 = lint
3.6 = check, lint
3.7 = check, lint
3.8 = check, lint
pypy3 = lint


Expand Down

0 comments on commit c2d568d

Please sign in to comment.