From e77e4dc174df22ad9d51c1afc1bef4d2d449d0b4 Mon Sep 17 00:00:00 2001 From: Ruben van Staveren Date: Fri, 14 Mar 2025 13:39:44 +0100 Subject: [PATCH] Added workflows --- .gitea/workflows/flake8.yml | 17 +++++++++++++++++ .gitea/workflows/mypy.yml | 17 +++++++++++++++++ .gitea/workflows/pylint.yml | 17 +++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .gitea/workflows/flake8.yml create mode 100644 .gitea/workflows/mypy.yml create mode 100644 .gitea/workflows/pylint.yml diff --git a/.gitea/workflows/flake8.yml b/.gitea/workflows/flake8.yml new file mode 100644 index 0000000..a50707e --- /dev/null +++ b/.gitea/workflows/flake8.yml @@ -0,0 +1,17 @@ +--- +name: Flake8 +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 Flake8 + run: | + flake8 $(git ls-files '*.py') diff --git a/.gitea/workflows/mypy.yml b/.gitea/workflows/mypy.yml new file mode 100644 index 0000000..94c12ea --- /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 --install-types --non-interactive $(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')