From 221a7c2de2089a8b1ef40c7d9ecbb732dceb23f9 Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Fri, 14 Mar 2025 12:12:28 +0100 Subject: [PATCH] Add pylint/mypy --- .gitea/workflows/mypy.yml | 17 +++++++++++++++++ .gitea/workflows/pylint.yml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .gitea/workflows/mypy.yml create mode 100644 .gitea/workflows/pylint.yml diff --git a/.gitea/workflows/mypy.yml b/.gitea/workflows/mypy.yml new file mode 100644 index 0000000..a027a3f --- /dev/null +++ b/.gitea/workflows/mypy.yml @@ -0,0 +1,17 @@ +--- +name: Mypy +on: [push] + + +# XXX need to do stuff with uv +jobs: + build: + runs-on: freebsd + strategy: + matrix: + python-version: ["3.11"] + steps: + - uses: actions/checkout@v4 + - name: Analyse code with Mypy + run: | + mypy $(git ls-files '*.py') diff --git a/.gitea/workflows/pylint.yml b/.gitea/workflows/pylint.yml new file mode 100644 index 0000000..d101f6a --- /dev/null +++ b/.gitea/workflows/pylint.yml @@ -0,0 +1,17 @@ +--- +name: Pylint +on: [push] + + +# XXX need to do stuff with uv +jobs: + build: + runs-on: freebsd + strategy: + matrix: + python-version: ["3.11"] + steps: + - uses: actions/checkout@v4 + - name: Analyse code with Pylint + run: | + pylint $(git ls-files '*.py')