-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lots of cleanup and prep work for Python 3.7-3.10 Django 2.1+
- Loading branch information
Showing
101 changed files
with
946 additions
and
749 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[run] | ||
branch = True | ||
omit = | ||
*/migrations/* | ||
|
||
[report] | ||
fail_under = 70 | ||
omit = | ||
*/migrations/* | ||
*/test* |
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,16 +1,107 @@ | ||
*.pyc | ||
*.pyo | ||
# Created by .ignore support plugin (hsz.mobi) | ||
### Python template | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
.DS_Store | ||
Thumbs.db | ||
*.orig | ||
dist | ||
build | ||
django_datatable_view.egg-info | ||
.tm_properties | ||
.python-version | ||
local_settings.py | ||
db.sqlite3 | ||
appengine | ||
docs/_build | ||
.idea | ||
.venv/ | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
.DS_Store |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
repos: | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
args: ['--maxkb=500'] | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: detect-private-key | ||
- id: flake8 | ||
files: datatableview | ||
exclude: tests/* | ||
args: ['--config=tox.ini'] | ||
- id: fix-encoding-pragma | ||
- id: end-of-file-fixer | ||
exclude: .idea/* | ||
- id: trailing-whitespace | ||
exclude: .idea/* | ||
- id: mixed-line-ending | ||
exclude: .idea/* | ||
- id: double-quote-string-fixer | ||
exclude: .idea/* | ||
- id: check-json | ||
files: .gitignore | ||
- repo: https://github.com/pre-commit/mirrors-isort | ||
rev: v4.3.16 # Use the revision sha / tag you want to point at | ||
hooks: | ||
- id: isort | ||
files: datatableview | ||
args: ['--recursive', '--diff'] |
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,31 +1,30 @@ | ||
sudo: false | ||
dist: xenial | ||
|
||
language: python | ||
|
||
sudo: false | ||
|
||
git: | ||
depth: 1 | ||
quiet: true | ||
|
||
cache: pip | ||
|
||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
# - "3.7" | ||
env: | ||
- DJANGO=1.11.16 | ||
- DJANGO=2.0.9 | ||
- DJANGO=2.1.2 | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "3.10-dev" | ||
|
||
install: | ||
- pip install -q Django==$DJANGO | ||
# - pip install pep8 | ||
# - pip install pyflakes | ||
- pip install -q -e . | ||
# before_script: | ||
# - "pep8 --exclude=migrations --ignore=E501,E225 datatableview" | ||
# - pyflakes datatableview | ||
script: | ||
- python datatableview/tests/example_project/manage.py test | ||
|
||
matrix: | ||
exclude: | ||
- python: "2.7" | ||
env: DJANGO=2.0.9 | ||
- python: "2.7" | ||
env: DJANGO=2.1.2 | ||
- python: "3.4" | ||
env: DJANGO=2.1.2 | ||
- 'pip install tox-travis pyyaml python-coveralls' | ||
|
||
script: tox | ||
|
||
notifications: | ||
slack: | ||
rooms: | ||
- pivotalenergy:SvNSkVaLVlZeu82utL37wSvy#travis | ||
|
||
after_success: | ||
- coveralls |
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
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.