Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1fdff54

Browse files
committed
tox: lint setup.py and yapf tests/
1 parent 2cb6792 commit 1fdff54

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

contrib/yapf-recursive-diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
set -o errexit
88

9-
echo "Running: yapf --exclude=tests/regression/headerdb --diff --recursive" "$@"
9+
echo "Running: yapf --diff --recursive" "$@"
1010

1111
temp=$(mktemp --tmpdir yapf-diff.XXXXXX)
12-
yapf --exclude=tests/regression/headerdb --diff --recursive "$@" | tee "$temp"
12+
yapf --diff --recursive "$@" | tee "$temp"
1313

1414
if [[ -s "$temp" ]]; then
1515
exit 1

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
'Programming Language :: Python :: 3.4',
4545
'Programming Language :: Python :: 3.5',
4646
'Programming Language :: Python :: 3.6',
47-
"Programming Language :: Python :: Implementation :: PyPy"
47+
"Programming Language :: Python :: Implementation :: PyPy",
4848
],
4949
keywords=['Clang', 'compilation-database', 'compdb'],
5050
packages=find_packages(include=['compdb', 'compdb.*']),
@@ -55,5 +55,4 @@
5555
],
5656
},
5757
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
58-
install_requires=dependencies,
59-
)
58+
install_requires=dependencies)

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ commands = python setup.py check -m -r -s
1515

1616
[testenv:lint]
1717
commands =
18-
{toxinidir}/contrib/yapf-recursive-diff compdb
19-
flake8 --exclude=tests/regression/headerdb compdb tests
18+
{toxinidir}/contrib/yapf-recursive-diff --exclude 'tests/regression/headerdb/*' compdb tests setup.py
19+
flake8 --exclude=tests/regression/headerdb compdb tests setup.py
2020

2121
[flake8]
2222
exclude = .tox,*.egg

0 commit comments

Comments
 (0)