This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Python code cleanup by the cleanup-python-code Jenkins job. This pull request was generated by the cleanup-python-code Jenkins job, which ran ``` modernize_travis;modernize_tox;make upgrade;find . -type f -name '*.py' | while read fname; do pyupgrade --exit-zero-even-if-changed --keep-percent-format --py3-plus --py36-plus --py38-plus "$fname"; done ``` The following packages were installed: `pyupgrade,git+https://github.com/edx/repo-tools.git@c05453b733602ba7a2224ffbbf58a8d0903b62d8` * Fix test failures Co-authored-by: Zulqarnain <[email protected]>
- Loading branch information
1 parent
c212171
commit 4df92ce
Showing
34 changed files
with
233 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,29 @@ | ||
language: python | ||
python: | ||
- 3.5 | ||
- 3.8 | ||
- '3.8' | ||
env: | ||
- TOXENV=quality | ||
matrix: | ||
include: | ||
- python: 3.5 | ||
env: TOXENV=py35 | ||
- python: 3.8 | ||
env: TOXENV=py38 | ||
- TOXENV=py38 | ||
cache: pip | ||
sudo: false | ||
branches: | ||
only: | ||
- master | ||
- /^\d+\.\d+(\.\d+)?(-\S*)?$/ | ||
install: | ||
- pip install coveralls | ||
- pip install -r requirements/tox.txt | ||
- pip install coveralls | ||
- pip install -r requirements/tox.txt | ||
script: tox | ||
after_success: | ||
- coveralls | ||
- bash ./scripts/build-stats-to-datadog.sh | ||
- coveralls | ||
- bash ./scripts/build-stats-to-datadog.sh | ||
deploy: | ||
provider: pypi | ||
user: edx | ||
distributions: sdist bdist_wheel | ||
on: | ||
tags: true | ||
python: 3.5 | ||
condition: "$TOXENV = quality" | ||
python: 3.8 | ||
condition: $TOXENV = quality | ||
password: | ||
secure: niAkz7MPmeGxu+dgicFGm8SydYPy0PYZI8jn/Rcs+B9ASPt8oJ0sFxGLtYLl7b0Rg9UcRrHHfoLOMWYK/0n+cdgGPJEmtXHnxBgzSdliYl5kO16A3omK4s7a8794qJ+4DM/LraFc2jU3Fg1t2PJZp4BuNMVIpSch3iZ3bvWhh/s= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.16.1' | ||
__version__ = '0.17.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
|
||
from analyticsclient.constants import data_formats, http_methods | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
UNKNOWN_COUNTRY_CODE = u'UNKNOWN' | ||
UNKNOWN_COUNTRY_CODE = 'UNKNOWN' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""Course activity types.""" | ||
|
||
ANY = u'any' | ||
ATTEMPTED_PROBLEM = u'attempted_problem' | ||
PLAYED_VIDEO = u'played_video' | ||
POSTED_FORUM = u'posted_forum' | ||
ANY = 'any' | ||
ATTEMPTED_PROBLEM = 'attempted_problem' | ||
PLAYED_VIDEO = 'played_video' | ||
POSTED_FORUM = 'posted_forum' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""Course demographics.""" | ||
|
||
BIRTH_YEAR = u'birth_year' | ||
EDUCATION = u'education' | ||
GENDER = u'gender' | ||
LOCATION = u'location' | ||
BIRTH_YEAR = 'birth_year' | ||
EDUCATION = 'education' | ||
GENDER = 'gender' | ||
LOCATION = 'location' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
NONE = u'none' | ||
OTHER = u'other' | ||
PRIMARY = u'primary' | ||
JUNIOR_SECONDARY = u'junior_secondary' | ||
SECONDARY = u'secondary' | ||
ASSOCIATES = u'associates' | ||
BACHELORS = u'bachelors' | ||
MASTERS = u'masters' | ||
DOCTORATE = u'doctorate' | ||
NONE = 'none' | ||
OTHER = 'other' | ||
PRIMARY = 'primary' | ||
JUNIOR_SECONDARY = 'junior_secondary' | ||
SECONDARY = 'secondary' | ||
ASSOCIATES = 'associates' | ||
BACHELORS = 'bachelors' | ||
MASTERS = 'masters' | ||
DOCTORATE = 'doctorate' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
AUDIT = u'audit' | ||
CREDIT = u'credit' | ||
HONOR = u'honor' | ||
PROFESSIONAL = u'professional' | ||
VERIFIED = u'verified' | ||
MASTERS = u'masters' | ||
AUDIT = 'audit' | ||
CREDIT = 'credit' | ||
HONOR = 'honor' | ||
PROFESSIONAL = 'professional' | ||
VERIFIED = 'verified' | ||
MASTERS = 'masters' | ||
|
||
ALL = [AUDIT, CREDIT, HONOR, PROFESSIONAL, VERIFIED, MASTERS] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FEMALE = u'female' | ||
MALE = u'male' | ||
OTHER = u'other' | ||
UNKNOWN = u'unknown' | ||
FEMALE = 'female' | ||
MALE = 'male' | ||
OTHER = 'other' | ||
UNKNOWN = 'unknown' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
GET = u'GET' | ||
HEAD = u'HEAD' | ||
POST = u'POST' | ||
PUT = u'PUT' | ||
DELETE = u'DELETE' | ||
CONNECT = u'CONNECT' | ||
OPTIONS = u'OPTIONS' | ||
TRACE = u'TRACE' | ||
PATCH = u'PATCH' | ||
GET = 'GET' | ||
HEAD = 'HEAD' | ||
POST = 'POST' | ||
PUT = 'PUT' | ||
DELETE = 'DELETE' | ||
CONNECT = 'CONNECT' | ||
OPTIONS = 'OPTIONS' | ||
TRACE = 'TRACE' | ||
PATCH = 'PATCH' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
|
||
import datetime | ||
|
||
from analyticsclient.base import PostableCourseIDsEndpoint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
|
||
|
||
from analyticsclient.base import PostableCourseIDsEndpoint | ||
from analyticsclient.constants import data_formats | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.