-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from snguyenthanh/development
Fix compatibility with Python 3.5 (and earlier) and update wordlist
- Loading branch information
Showing
7 changed files
with
97 additions
and
15 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,6 +1,30 @@ | ||
dist: xenial | ||
|
||
language: python | ||
python: | ||
- "3.6" | ||
|
||
services: | ||
- redis-server | ||
|
||
matrix: | ||
include: | ||
- python: 3.8 | ||
env: TOXENV=black | ||
|
||
- python: 3.4 | ||
env: TOXENV=py34 | ||
- python: 3.5 | ||
env: TOXENV=py35 | ||
- python: 3.6 | ||
env: TOXENV=py36 | ||
- python: 3.7 | ||
env: TOXENV=py37 | ||
- python: 3.8 | ||
env: TOXENV=py38 | ||
- python: pypy3 | ||
env: TOXENV=pypy3 | ||
|
||
install: | ||
- pip install tox | ||
|
||
script: | ||
- python tests.py | ||
- tox |
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
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
[tox] | ||
envlist = | ||
black | ||
py34, py35, py36, py37, py38, pypy3 | ||
|
||
skipsdist = True | ||
skip_missing_interpreters = True | ||
|
||
[default] | ||
basepython = python3.8 | ||
|
||
setenv = | ||
PY_MODULE=better_profanity | ||
PYTHONPYCACHEPREFIX={envtmpdir}/pycache | ||
|
||
[testenv] | ||
parallel_show_output = True | ||
whitelist_externals = make | ||
/bin/bash | ||
|
||
basepython = | ||
py34: python3.4 | ||
py35: python3.5 | ||
py36: python3.6 | ||
py37: python3.7 | ||
py38: python3.8 | ||
|
||
pypy3: pypy3 | ||
|
||
|
||
# run the tests | ||
# ... or run any other command line tool you need to run here | ||
commands = python tests.py | ||
|
||
|
||
[testenv:black] | ||
description = run Black (linter) | ||
basepython = {[default]basepython} | ||
skip_install = True | ||
deps = | ||
black==19.10b0 | ||
setenv = | ||
BLACK_LINT_ARGS=--check | ||
commands = | ||
black {env:BLACK_LINT_ARGS:} better_profanity | ||
|
||
|
||
[testenv:black-reformat] | ||
|
||
description = {[testenv:black]description} and reformat | ||
basepython = {[testenv:black]basepython} | ||
skip_install = {[testenv:black]skip_install} | ||
deps = {[testenv:black]deps} | ||
commands = {[testenv:black]commands} |