mirror of
https://github.com/dbcli/pgcli.git
synced 2024-09-11 13:56:36 +03:00
Ported pep8radius addition from mycli.
This commit is contained in:
parent
eab935034e
commit
b3ade2db9d
@ -8,12 +8,15 @@ python:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install . pytest mock codecov==1.5.1 behave pexpect==3.3
|
- pip install . pytest mock codecov==1.5.1 behave pexpect==3.3
|
||||||
|
- pip install git+https://github.com/hayd/pep8radius.git
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- coverage run --source pgcli -m py.test
|
- coverage run --source pgcli -m py.test
|
||||||
- cd tests
|
- cd tests
|
||||||
- behave
|
- behave
|
||||||
- cd ..
|
- cd ..
|
||||||
|
# check for pep8 errors, only looking at branch vs master. If there are errors, show diff and return an error code.
|
||||||
|
- pep8radius master --docformatter --error-status || ( pep8radius master --docformatter --diff; false )
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- coverage combine
|
- coverage combine
|
||||||
|
15
DEVELOP.rst
15
DEVELOP.rst
@ -155,3 +155,18 @@ To see stdout/stderr, use the following command:
|
|||||||
|
|
||||||
$ behave --no-capture
|
$ behave --no-capture
|
||||||
|
|
||||||
|
|
||||||
|
PEP8 checks
|
||||||
|
-----------
|
||||||
|
|
||||||
|
When you submit a PR, the changeset is checked for pep8 compliance using
|
||||||
|
`pep8radius <https://github.com/hayd/pep8radius>`_. If you see a build failing because
|
||||||
|
of these checks, install pep8radius and apply style fixes:
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
$ pip install pep8radius
|
||||||
|
$ pep8radius --docformatter --diff # view a diff of proposed fixes
|
||||||
|
$ pep8radius --docformatter --in-place # apply the fixes
|
||||||
|
|
||||||
|
Then commit and push the fixes.
|
||||||
|
@ -11,6 +11,10 @@ Bug fixes:
|
|||||||
* Fixed external editor bug (issue #668). (Thanks: `Irina Truong`_).
|
* Fixed external editor bug (issue #668). (Thanks: `Irina Truong`_).
|
||||||
* Standardize command line option names. (Thanks: `Russell Davies`_)
|
* Standardize command line option names. (Thanks: `Russell Davies`_)
|
||||||
|
|
||||||
|
Internal changes:
|
||||||
|
-----------------
|
||||||
|
* Run pep8 checks in travis (Thanks: `Irina Truong`_).
|
||||||
|
|
||||||
1.5.1
|
1.5.1
|
||||||
=====
|
=====
|
||||||
|
|
||||||
|
@ -3,4 +3,5 @@ mock>=1.0.1
|
|||||||
tox>=1.9.2
|
tox>=1.9.2
|
||||||
behave>=1.2.4
|
behave>=1.2.4
|
||||||
pexpect==3.3
|
pexpect==3.3
|
||||||
coverage==4.3.4
|
coverage==4.3.4
|
||||||
|
pep8radius
|
Loading…
Reference in New Issue
Block a user