You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by gi...@apache.org on 2020/12/29 13:05:40 UTC
[buildstream] 01/01: Enable linting unconditionally
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch always-do-linting
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 7e6b5f26603dc98728e3b5cbcc61275f2f14ff1d
Author: Tristan Maat <tm...@tlater.net>
AuthorDate: Fri Mar 16 10:04:40 2018 +0000
Enable linting unconditionally
---
.gitlab-ci.yml | 4 ++--
setup.cfg | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2244de3..17f41dd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,7 +88,7 @@ linux-tests:
# Run the tests from the source distribution, We run as a simple
# user to test for permission issues
- - su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration'
+ - su buildstream -c 'python3 setup.py test --index-url invalid://uri --addopts --integration -m "not (pep8 or pylint)"'
# Go back to the toplevel and collect our reports
- cd ../..
@@ -119,7 +119,7 @@ unix-tests:
- cd dist && ./unpack.sh && cd buildstream
# Since the unix platform is required to run as root, no user change required
- - python3 setup.py test --index-url invalid://uri --addopts --integration
+ - python3 setup.py test --index-url invalid://uri --addopts --integration -m "not (pep8 or pylint)"
# Go back to the toplevel and collect our reports
- cd ../..
diff --git a/setup.cfg b/setup.cfg
index 4540ae9..712413b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,7 +2,7 @@
test=pytest
[tool:pytest]
-addopts = --verbose --basetemp ./tmp --pylint-rcfile=.pylintrc --cov=buildstream --cov-config .coveragerc
+addopts = --verbose --basetemp ./tmp --pylint-rcfile=.pylintrc --cov=buildstream --cov-config .coveragerc --pep8 --pylint
norecursedirs = integration-cache tmp __pycache__ .eggs
python_files = tests/*/*.py
pep8maxlinelength = 119