Skip to content

Commit

Permalink
ignore lxml and add python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehina committed Dec 23, 2023
1 parent ea358fe commit b931bd2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-poetry-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
python-version:
required: false
description: "The python version to use"
default: "3.11"
default: "3.12"

runs:
using: "composite"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]


[tool.ruff]
target-version = "py37"
line-length = 120
Expand Down Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
[tox]
skipsdist = true
envlist = py38, py39, py310, py311
envlist = py38, py39, py310, py311, py312

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
passenv = PYTHON_VERSION
Expand Down

0 comments on commit b931bd2

Please sign in to comment.