Skip to content

Commit

Permalink
Skip running linters during build and autopkgtest
Browse files Browse the repository at this point in the history
Skip running linters during build and autopkgtest except for pylint with
`--errors-only` and mypy.
  • Loading branch information
bdrung committed Aug 1, 2024
1 parent d2cdebe commit 5712365
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
8 changes: 2 additions & 6 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@ Source: bdebstrap
Section: admin
Priority: optional
Maintainer: Benjamin Drung <bdrung@debian.org>
Build-Depends: black,
debhelper-compat (= 13),
Build-Depends: debhelper-compat (= 13),
dh-python,
isort,
mypy,
pandoc,
pylint (>= 2.2.2-2~) | pylint3,
python3,
python3-flake8,
python3-ruamel.yaml,
python3-setuptools,
python3-typeshed,
shellcheck
python3-typeshed
Standards-Version: 4.7.0
Homepage: https://github.com/bdrung/bdebstrap
Rules-Requires-Root: no
Expand Down
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/make -f

export PYBUILD_TEST_ARGS=-s $(CURDIR)
export SKIP_LINTERS=1

%:
dh $@ --buildsystem pybuild --with python3
9 changes: 1 addition & 8 deletions debian/tests/control
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
Tests: unittest
Depends: bdebstrap,
black,
isort,
mypy,
pylint (>= 2.2.2-2~) | pylint3,
python3-flake8,
python3-typeshed,
shellcheck
Depends: bdebstrap, mypy, pylint (>= 2.2.2-2~) | pylint3, python3-typeshed
Restrictions: allow-stderr

Test-Command: ./system-testing bdebstrap
Expand Down
2 changes: 1 addition & 1 deletion debian/tests/unittest
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -eu
cp -r examples .pylintrc pyproject.toml tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
ln -sf /usr/bin/bdebstrap bdebstrap.py
python3 -m unittest discover -v
SKIP_LINTERS=1 python3 -m unittest discover -v

0 comments on commit 5712365

Please sign in to comment.