Skip to content

Commit 6b9c258

Browse files
committed
test (pylint): relax pylint and astroid constrains
1 parent 9ca940b commit 6b9c258

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/basic-python3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
# * `test_BaseType_Unicode` and `test_nestedStructure` fail due to
7171
# DISET's string and unicode types being poorly defined
7272
- pytest --runslow -k 'not test_BaseType_Unicode and not test_nestedStructure'
73-
- pylint -E src/
73+
- pylint -j 0 -E src/
7474

7575
steps:
7676
- uses: actions/checkout@v3

environment-py3.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ channels:
77

88
dependencies:
99
# Temporary workarounds
10-
- astroid 2.5.6 # https://github.com/PyCQA/astroid/issues/1006 and https://github.com/PyCQA/astroid/issues/1007
1110
# runtime
1211
- python =3.9
1312
- pip
@@ -60,7 +59,7 @@ dependencies:
6059
- make
6160
- mock
6261
- parameterized
63-
- pylint >=1.6.5
62+
- pylint
6463
- pyparsing >=2.0.6
6564
- pytest >=3.6
6665
- pytest-cov >=2.2.0

tests/runPylint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
if [[ "${CHECK}" == "pylintPY3K" ]]; then
4-
find * -name "*.py" -and -not -name 'pep8_*' -exec pylint -E --rcfile=tests/.pylintrc3k --py3k --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" --extension-pkg-whitelist=numpy {} +
4+
find * -name "*.py" -and -not -name 'pep8_*' -exec pylint -j 0 -E --rcfile=tests/.pylintrc3k --py3k --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" --extension-pkg-whitelist=numpy {} +
55
else
6-
find * -name "*.py" -and -not -name 'pep8_*' -exec pylint -E --rcfile=.pylintrc --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" --extension-pkg-whitelist=numpy {} +
6+
find * -name "*.py" -and -not -name 'pep8_*' -exec pylint -j 0 -E --rcfile=.pylintrc --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" --extension-pkg-whitelist=numpy {} +
77
fi

0 commit comments

Comments
 (0)