Javier Jardón pushed to branch jjardon/pycodestyle at BuildStream / buildstream
Commits:
3 changed files:
Changes:
| ... | ... | @@ -66,6 +66,8 @@ source_dist: |
| 66 | 66 |
- chown -R buildstream:buildstream buildstream
|
| 67 | 67 |
- cd buildstream
|
| 68 | 68 |
|
| 69 |
+ - pip3 install pytest-codestyle
|
|
| 70 |
+ |
|
| 69 | 71 |
# Run the tests from the source distribution, We run as a simple
|
| 70 | 72 |
# user to test for permission issues
|
| 71 | 73 |
- su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration'
|
| ... | ... | @@ -108,6 +110,8 @@ tests-unix: |
| 108 | 110 |
# Unpack and get into dist/buildstream
|
| 109 | 111 |
- cd dist && ./unpack.sh && cd buildstream
|
| 110 | 112 |
|
| 113 |
+ - pip3 install pytest-codestyle
|
|
| 114 |
+ |
|
| 111 | 115 |
# Since the unix platform is required to run as root, no user change required
|
| 112 | 116 |
- python3 setup.py test --index-url invalid://uri --addopts --integration
|
| 113 | 117 |
|
| ... | ... | @@ -10,11 +10,11 @@ parentdir_prefix = BuildStream- |
| 10 | 10 |
test=pytest
|
| 11 | 11 |
|
| 12 | 12 |
[tool:pytest]
|
| 13 |
-addopts = --verbose --basetemp ./tmp --pep8 --pylint --pylint-rcfile=.pylintrc --cov=buildstream --cov-config .coveragerc
|
|
| 13 |
+addopts = --verbose --basetemp ./tmp --codestyle --pylint --pylint-rcfile=.pylintrc --cov=buildstream --cov-config .coveragerc
|
|
| 14 | 14 |
norecursedirs = integration-cache tmp __pycache__ .eggs
|
| 15 | 15 |
python_files = tests/*/*.py
|
| 16 |
-pep8maxlinelength = 119
|
|
| 17 |
-pep8ignore =
|
|
| 16 |
+codestyle_max_line_length = 119
|
|
| 17 |
+codestyle_ignore =
|
|
| 18 | 18 |
* E129
|
| 19 | 19 |
* E125
|
| 20 | 20 |
doc/source/conf.py ALL
|
| ... | ... | @@ -261,13 +261,13 @@ setup(name='BuildStream', |
| 261 | 261 |
],
|
| 262 | 262 |
entry_points=bst_install_entry_points,
|
| 263 | 263 |
setup_requires=['pytest-runner'],
|
| 264 |
- tests_require=['pep8',
|
|
| 264 |
+ tests_require=[
|
|
| 265 | 265 |
# Pin coverage to 4.2 for now, we're experiencing
|
| 266 | 266 |
# random crashes with 4.4.2
|
| 267 | 267 |
'coverage == 4.4.0',
|
| 268 | 268 |
'pytest-datafiles',
|
| 269 | 269 |
'pytest-env',
|
| 270 |
- 'pytest-pep8',
|
|
| 270 |
+ 'pytest-codestyle',
|
|
| 271 | 271 |
'pytest-pylint',
|
| 272 | 272 |
'pytest-cov >= 2.5.0',
|
| 273 | 273 |
# Provide option to run tests in parallel, less reliable
|
