From b931bd2da3943b24066234c4c42534d54306156f Mon Sep 17 00:00:00 2001 From: Zehina Date: Sat, 23 Dec 2023 00:34:23 +0000 Subject: [PATCH] ignore lxml and add python 3.12 --- .github/actions/setup-poetry-env/action.yml | 2 +- .github/workflows/main.yml | 6 +++--- pyproject.toml | 4 ++++ tox.ini | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/actions/setup-poetry-env/action.yml b/.github/actions/setup-poetry-env/action.yml index 22e4053..cf91ee0 100644 --- a/.github/actions/setup-poetry-env/action.yml +++ b/.github/actions/setup-poetry-env/action.yml @@ -5,7 +5,7 @@ inputs: python-version: required: false description: "The python version to use" - default: "3.11" + default: "3.12" runs: using: "composite" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f74555e..d2721ee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] fail-fast: false steps: - name: Check out @@ -58,9 +58,9 @@ jobs: - name: Test with tox run: tox - - name: Upload coverage reports to Codecov with GitHub Action on Python 3.11 + - name: Upload coverage reports to Codecov with GitHub Action on Python 3.12 uses: codecov/codecov-action@v3 - if: ${{ matrix.python-version == '3.11' }} + if: ${{ matrix.python-version == '3.12' }} check-docs: runs-on: ubuntu-latest diff --git a/pyproject.toml b/pyproject.toml index 3bfa3e7..2c9e30d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,6 +60,7 @@ ignore_missing_imports = true [tool.pytest.ini_options] testpaths = ["tests"] + [tool.ruff] target-version = "py37" line-length = 120 @@ -109,6 +110,9 @@ ignore = [ [tool.ruff.format] preview = true +[tool.deptry.per_rule_ignores] +DEP002 = ["lxml"] # lxml is used by BeautifulSoup + [tool.coverage.report] skip_empty = true diff --git a/tox.ini b/tox.ini index a44a21b..c2e13e7 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] skipsdist = true -envlist = py38, py39, py310, py311 +envlist = py38, py39, py310, py311, py312 [gh-actions] python = @@ -8,6 +8,7 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv] passenv = PYTHON_VERSION