From 675f5e10765a2837dd026b22cca536d7f5ced71a Mon Sep 17 00:00:00 2001 From: LouisCoutel Date: Wed, 20 Nov 2024 19:56:33 +0100 Subject: [PATCH] feat: create linting and testing workflow --- .github/workflows/test-lint.yml | 19 +++++++++++++++++++ pyproject.toml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-lint.yml diff --git a/.github/workflows/test-lint.yml b/.github/workflows/test-lint.yml new file mode 100644 index 0000000..7ff761c --- /dev/null +++ b/.github/workflows/test-lint.yml @@ -0,0 +1,19 @@ +name: test-lint +on: [push] +jobs: + uv-pylint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + version: "0.5.2" + - name: Set up Python + run: uv python install + - name: Install the project + run: uv sync --all-extras --dev + - name: Run tests + run: uv run pytest tests/test_extension.py + - name: Run Ruff linter + run: uv run ruff check ./ diff --git a/pyproject.toml b/pyproject.toml index 23278d1..31c8daf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "flask-template-refs" -version = "0.1.0" +version = "0.2.0" description = "Flask extension that creates template references, enabling simple access to templates with dot notation and auto-completion." authors = [ { name = "LouisCoutel", email = "louiscoutel75@gmail.com" }