summaryrefslogtreecommitdiff
diff options
authorIlker Emre Koc <ilkeremre.koc@canonical.com>2025-07-25 11:52:42 +0300
committerIlker Emre Koc <ilkeremre.koc@canonical.com>2025-07-25 11:52:42 +0300
commit07dc9a1992499a1a3faa7db24bf85b37b7ed1e1b (patch)
tree33dfa1085df922fbfcc0ed8f4e0d83c883bda56f
parent277837a94562a3410708845613b15decb6a4d471 (diff)
Add lpci support with the .launchpad.yaml
To run lpci checks, added the .launchpad.yaml file. Modified the tox.ini file to run the linters within lpci as well.
-rw-r--r--.launchpad.yaml21
-rw-r--r--tox.ini12
2 files changed, 33 insertions, 0 deletions
diff --git a/.launchpad.yaml b/.launchpad.yaml
new file mode 100644
index 0000000..acb00f5
--- /dev/null
+++ b/.launchpad.yaml
@@ -0,0 +1,21 @@
+pipeline:
+ - lint
+ - py38
+
+jobs:
+ lint:
+ architectures: amd64
+ packages:
+ - tox
+ - git
+ snaps:
+ - name: go
+ classic: true
+ run: tox -e lint
+ series: focal
+ py38:
+ architectures: amd64
+ packages:
+ - tox
+ run: tox -e py38
+ series: focal
diff --git a/tox.ini b/tox.ini
index 1d39104..b7610da 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,7 @@
[tox]
envlist =
py38
+ lint
[testenv]
deps =
@@ -8,3 +9,14 @@ deps =
.[test]
commands =
python3 -m testtools.run oops.tests.test_suite
+
+[testenv:lint]
+skip_install = true
+deps = pre-commit
+commands = pre-commit run --all-files --show-diff-on-failure
+# adding http(s)_proxy is a workaround for
+# https://github.com/tox-dev/tox/pull/2378/files
+passenv =
+ HOME
+ http_proxy
+ https_proxy