-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into stringlistmodel
- Loading branch information
Showing
8 changed files
with
153 additions
and
24 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,107 @@ | ||
# ----------------------------------------------------------------------------- | ||
# ciocheck | ||
# https://github.com/ContinuumIO/ciocheck | ||
# ----------------------------------------------------------------------------- | ||
[ciocheck] | ||
branch = origin/master | ||
diff_mode = commited | ||
file_mode = all | ||
check = pep8,pydocstyle,flake8,pylint | ||
|
||
# Python (pyformat) | ||
add_copyright = true | ||
add_header = true | ||
add_init = true | ||
|
||
# ----------------------------------------------------------------------------- | ||
# pep8 | ||
# http://pep8.readthedocs.io/en/latest/intro.html#configuration | ||
# ----------------------------------------------------------------------------- | ||
[pep8] | ||
exclude = */tests/* | ||
ignore = E126 | ||
max-line-length = 79 | ||
|
||
# ----------------------------------------------------------------------------- | ||
# pydocstyle | ||
# http://www.pydocstyle.org/en/latest/usage.html#example | ||
# ----------------------------------------------------------------------------- | ||
[pydocstyle] | ||
add-ignore = D203 | ||
inherit = false | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Flake 8 | ||
# http://flake8.readthedocs.io/en/latest/config.html | ||
# ----------------------------------------------------------------------------- | ||
[flake8] | ||
exclude = */tests/* | ||
ignore = E126,F401 | ||
max-line-length = 79 | ||
max-complexity = 64 | ||
|
||
# ----------------------------------------------------------------------------- | ||
# pylint | ||
# https://pylint.readthedocs.io/en/latest/ | ||
# ----------------------------------------------------------------------------- | ||
[pylint:messages] | ||
disable=unused-import | ||
|
||
# ----------------------------------------------------------------------------- | ||
# isort | ||
# https://github.com/timothycrosley/isort/wiki/isort-Settings | ||
# ----------------------------------------------------------------------------- | ||
[isort] | ||
from_first = true | ||
import_heading_stdlib = Standard library imports | ||
import_heading_firstparty = Local imports | ||
import_heading_thirdparty = Third party imports | ||
indent = ' ' | ||
known_first_party = qtpy | ||
known_third_party = PySide, PyQt4, PyQt5 | ||
line_length = 79 | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER | ||
|
||
# ----------------------------------------------------------------------------- | ||
# yapf | ||
# https://github.com/google/yapf#formatting-style | ||
# ----------------------------------------------------------------------------- | ||
[yapf:style] | ||
based_on_style = pep8 | ||
column_limit = 79 | ||
spaces_before_comment = 2 | ||
|
||
# ----------------------------------------------------------------------------- | ||
# autopep8 | ||
# http://pep8.readthedocs.io/en/latest/intro.html#configuration | ||
# ----------------------------------------------------------------------------- | ||
[autopep8] | ||
exclude = */tests/* | ||
ignore = E126, | ||
max-line-length = 79 | ||
|
||
# ----------------------------------------------------------------------------- | ||
# Coverage | ||
# http://coverage.readthedocs.io/en/latest/config.html | ||
# ----------------------------------------------------------------------------- | ||
[coverage:run] | ||
omit = | ||
*/tests/* | ||
*/build/* | ||
|
||
[coverage:report] | ||
fail_under = 0 | ||
show_missing = true | ||
skip_covered = true | ||
exclude_lines = | ||
pragma: no cover | ||
def test(): | ||
if __name__ == .__main__.: | ||
|
||
# ----------------------------------------------------------------------------- | ||
# pytest | ||
# http://doc.pytest.org/en/latest/usage.html | ||
# ----------------------------------------------------------------------------- | ||
[pytest] | ||
addopts = -rfew --durations=10 | ||
python_functions = 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
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,4 @@ | ||
include AUTHORS.md | ||
include CHANGELOG.md | ||
include LICENSE.txt | ||
include README.md |
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,34 +1,42 @@ | ||
# https://circleci.com/gh/spyder-ide/qtpy/ | ||
|
||
machine: | ||
environment: | ||
# Used by test scripts | ||
TEST_CI: "True" | ||
PYTHON_TEST: "$HOME/miniconda/envs/test/bin/python" | ||
PYTEST: "$HOME/miniconda/envs/test/bin/py.test" | ||
PATH: "$HOME/miniconda/bin:$PATH" # To avoid prepending this to the commands on circle-ci | ||
# Python versions to test (Maximum of 4 different versions for now) | ||
PY_VERSIONS: "2.7 3.4 3.5" | ||
PY_VERSIONS: "3.5 3.4 2.7" | ||
# Used by astropy-ci helpers | ||
TRAVIS_OS_NAME: "linux" | ||
CONDA_CHANNELS: "qttesting" | ||
CONDA_DEPENDENCIES: "pyqt pytest pytest-cov qt" | ||
PIP_DEPENDENCIES: "coveralls" | ||
|
||
dependencies: | ||
override: | ||
# First convert PY_VERSIONS to an array and then select the Python version based on the | ||
# CIRCLE_NODE_INDEX | ||
# First convert PY_VERSIONS to an array and then select the Python version | ||
# based on the CIRCLE_NODE_INDEX | ||
- PY_VERSIONS=($PY_VERSIONS) && | ||
TRAVIS_PYTHON_VERSION=${PY_VERSIONS[$CIRCLE_NODE_INDEX]} && | ||
echo -e "PYTHON = $TRAVIS_PYTHON_VERSION \n============" && | ||
git clone git://github.com/astropy/ci-helpers.git && | ||
source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh && | ||
"$PYTHON_TEST" setup.py install; | ||
export PATH="$HOME/miniconda/bin:$PATH" && | ||
source activate test && | ||
conda install -q ciocheck -c spyder-ide && | ||
python setup.py develop; | ||
|
||
test: | ||
override: | ||
- conda info --json: # note the colon | ||
# Check style | ||
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && ciocheck qtpy: # note the colon | ||
parallel: true | ||
# Check PyQt5 | ||
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install -q qt=5.* pyqt=5.* && python qtpy/tests/runtests.py: # note the colon | ||
parallel: true | ||
- "$PYTHON_TEST qtpy/tests/runtests.py": # note the colon | ||
# Check PySide2 | ||
# - export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install -q qt=5.* pyside2 && python qtpy/tests/runtests.py: # note the colon | ||
# parallel: true | ||
# Check PyQt4 | ||
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install -q qt=4.* pyqt=4.* && python qtpy/tests/runtests.py: # note the colon | ||
parallel: true | ||
# Check Pyside | ||
#- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda remove -q qt pyqt && conda install -c conda-forge qt=4.* pyside && python qtpy/tests/runtests.py: # note the colon | ||
# parallel: true |
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