refactor: Move linter checks into run-linters script

Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
This commit is contained in:
Benjamin Drung 2023-01-30 14:10:02 +01:00
parent 3bdb827516
commit 3d54a17403
3 changed files with 11 additions and 2 deletions

3
debian/copyright vendored
View File

@ -83,10 +83,11 @@ Files: doc/bitesize.1
GPL-3
grab-merge
merge-changelog
run-linters
setup-packaging-environment
syncpackage
Copyright: 2010, Benjamin Drung <bdrung@ubuntu.com>
2007-2011, Canonical Ltd.
2007-2023, Canonical Ltd.
2008, Jonathan Patrick Davies <jpds@ubuntu.com>
2008-2010, Martin Pitt <martin.pitt@canonical.com>
2009, Siegfried-Angel Gevatter Pujals <rainct@ubuntu.com>

2
debian/rules vendored
View File

@ -7,7 +7,7 @@ override_dh_auto_clean:
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
flake8 -v --max-line-length=99
./run-linters
python3 -m pytest -v ubuntutools
endif

8
run-linters Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
set -eu
# Copyright 2023, Canonical Ltd.
# SPDX-License-Identifier: GPL-3.0
echo "Running flake8..."
flake8 -v --max-line-length=99