Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [ "3.9", "3.13", "pypy-3.9", "pypy-3.10"]
python-version: [ "3.9", "3.13", "3.14.0-beta.4", "pypy-3.9", "pypy-3.11"]

steps:
- uses: actions/checkout@v4
Expand All @@ -33,9 +33,13 @@ jobs:
else
uv pip install --system -e ".[dev]"
fi
- name: Lint with ruff
run: |
if [ "${{ matrix.python-version }}" == "3.9" ]; then uv pip install --system ruff; fi
if [ "${{ matrix.python-version }}" == "3.9" ]; then ruff check src/reynir_correct; fi
- name: Typecheck with mypy
run: |
if [ "${{ matrix.python-version }}" == "3.9" ]; then python -m pip install mypy; fi
if [ "${{ matrix.python-version }}" == "3.9" ]; then uv pip install --system mypy; fi
if [ "${{ matrix.python-version }}" == "3.9" ]; then mypy --ignore-missing-imports --python-version=3.9 src/reynir_correct; fi
- name: Test with pytest
run: |
Expand Down
15 changes: 11 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "reynir-correct"
version = "4.1.0"
version = "4.1.1"
description = "Spelling and grammar correction for Icelandic"
authors = [{ name = "Miðeind ehf.", email = "mideind@mideind.is" }]
readme = { file = "README.rst", content-type = "text/x-rst" }
Expand All @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules",
Expand Down Expand Up @@ -61,11 +62,17 @@ filterwarnings = [
[tool.ruff]
line-length = 120

[tool.black]
line-length = 120
[tool.ruff.lint]
#select = ["ALL"] # We use default rules for now
extend-select = ["E501"] # Complain about line length
# Ignore specific rules
# (we should aim to have these as few as possible)
ignore = [
"F405", # 'F405: Name may be undefined, or defined from star imports: typing'
"E731", # 'E731: Do not assign a lambda expression, use a def'
]

[tool.isort]
# This forces these imports to placed at the top
known_future_library = ["__future__", "typing", "typing_extensions"]
profile = "black"
line_length = 120
Loading