mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-12 15:41:09 +00:00
refactor: Move linter checks into run-linters script
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
This commit is contained in:
parent
3bdb827516
commit
3d54a17403
3
debian/copyright
vendored
3
debian/copyright
vendored
@ -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
2
debian/rules
vendored
@ -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
8
run-linters
Executable 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
|
Loading…
x
Reference in New Issue
Block a user