mirror of
https://github.com/dbcli/pgcli.git
synced 2024-08-16 17:20:49 +03:00
Ported pep8radius addition from mycli.
This commit is contained in:
parent
eab935034e
commit
b3ade2db9d
@ -8,12 +8,15 @@ python:
|
||||
|
||||
install:
|
||||
- pip install . pytest mock codecov==1.5.1 behave pexpect==3.3
|
||||
- pip install git+https://github.com/hayd/pep8radius.git
|
||||
|
||||
script:
|
||||
- coverage run --source pgcli -m py.test
|
||||
- cd tests
|
||||
- behave
|
||||
- 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:
|
||||
- coverage combine
|
||||
|
15
DEVELOP.rst
15
DEVELOP.rst
@ -155,3 +155,18 @@ To see stdout/stderr, use the following command:
|
||||
|
||||
$ 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`_).
|
||||
* Standardize command line option names. (Thanks: `Russell Davies`_)
|
||||
|
||||
Internal changes:
|
||||
-----------------
|
||||
* Run pep8 checks in travis (Thanks: `Irina Truong`_).
|
||||
|
||||
1.5.1
|
||||
=====
|
||||
|
||||
|
@ -3,4 +3,5 @@ mock>=1.0.1
|
||||
tox>=1.9.2
|
||||
behave>=1.2.4
|
||||
pexpect==3.3
|
||||
coverage==4.3.4
|
||||
coverage==4.3.4
|
||||
pep8radius
|
Loading…
Reference in New Issue
Block a user