File: lint.sh

package info (click to toggle)
python-sercol 0.0%2Bgit20250731-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 128 kB
  • sloc: python: 269; sh: 16; makefile: 4
file content (15 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -o errexit


# disabling several categories of errors due to false positives in pylint,
# see these issues:
# - https://bitbucket.org/logilab/pylint/issues/701/false-positives-with-not-an-iterable-and
# - https://bitbucket.org/logilab/pylint/issues/58

find sercol/ -name '*.py' \
  | xargs pylint \
  --errors-only \
  --disable=unsubscriptable-object,not-an-iterable,no-member,invalid-unary-operand-type

echo 'Passes pylint check'