Skip to content

pyQode/pyqode.json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

18ca45c · Jul 31, 2016

History

77 Commits
Nov 30, 2014
Nov 13, 2014
Jun 28, 2016
Jul 31, 2016
Jan 31, 2016
Nov 18, 2014
Jan 25, 2016
Jul 31, 2016
Jan 25, 2016
Jun 28, 2016
Jan 25, 2016
Jan 25, 2016
Jan 25, 2016
Apr 10, 2015
Nov 18, 2014
Jul 31, 2016
May 1, 2015
Jan 25, 2016
Apr 9, 2015

Repository files navigation

https://raw.githubusercontent.com/pyQode/pyQode/master/media/pyqode-banner.png


Latest PyPI version Number of PyPI downloads

Travis-CI build status Coverage Status

About

pyqode.json adds JSON support to pyQode (syntax highlighter, navigation panel, code folding,...).

Features:

  • native syntax highlighter
  • specialised code folding detector
  • a pre-configured editor: pyqode.json.widgets.JSONCodeEdit
  • navigation panel (show you the current node and its parents and let you navigate between them)

License

pyqode.json is licensed under the MIT license.

Requirements

pyqode.json depends on the following libraries:

  • python 2.7 or python 3 (>= 3.2)
  • pyqode.core

Installation

$ pip install pyqode.json --upgrade

Testing

pyqode.core has a test suite and measure its coverage.

To run the tests, just run python setup.py test

To measure coverage, run:

python setup.py test -a "--cov pyqode"

To check for PEP8 warnings, install pytest-pep8 and run:

python setup.py test -a "--pep8 -m pep8"

To run a single test, use -a "-- test_file_path.py::test_function", e.g.:

python setup.py test -a "-- test/test_api/test_code_edit.py::test_set_plain_text"

Testing Matrix

We test the following combinations on Travis-CI:

  PyQt4 PyQt5
GNU/Linux - Python 2.7 yes no
GNU/Linux - Python 3.4 yes yes