From 59da074515a18e5090a2074d961e36210cf2b5f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Mart=C3=ADnez?= <103188721+hectorzin@users.noreply.github.com> Date: Fri, 15 Nov 2024 14:25:25 +0100 Subject: [PATCH] poetry --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ pyproject.toml | 5 +++++ 2 files changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..724e646 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + + - name: Install Poetry + run: | + curl -sSL https://install.python-poetry.org | python3 - + export PATH="$HOME/.local/bin:$PATH" + + - name: Install dependencies + run: | + poetry install --no-root + + - name: Run pre-commit + run: | + poetry run pre-commit run --all-files diff --git a/pyproject.toml b/pyproject.toml index 14733c4..b950166 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,6 +25,11 @@ ruff = "0.3.4" requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" +[[tool.poetry.source]] +name = "pypi" +url = "https://pypi.org/simple" +default = true + [tool.ruff] src = ["custom_components/aliexpress-openplatform"]