Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Dec 8, 2024
1 parent cad965a commit c0b5f99
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 78 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: "monthly"

default_language_version:
python: "python3.12"
python: "python3.13"

repos:
- repo: "meta"
Expand Down Expand Up @@ -48,7 +48,7 @@ repos:
hooks:
- id: "flake8"
additional_dependencies:
- "flake8-bugbear==24.4.26"
- "flake8-bugbear==24.10.31"

- repo: "https://github.com/editorconfig-checker/editorconfig-checker.python"
rev: "3.0.3"
Expand Down
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ version: 2

# Set the version of Python and other tools you might need
build:
os: "ubuntu-22.04"
os: "ubuntu-24.04"
tools:
python: "3.12"
python: "3.13"

# Build documentation in the docs/ directory with Sphinx.
sphinx:
Expand Down
9 changes: 9 additions & 0 deletions changelog.d/20241208_103647_kurtmckee_updates.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Documentation
-------------

* Configure Read the Docs to build on Ubuntu 24.04 with Python 3.13.

Project development
-------------------

* Configure linters to run on Python 3.13.
86 changes: 43 additions & 43 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"


# Poetry
# poetry
# ------

[tool.poetry]
Expand Down Expand Up @@ -32,47 +32,7 @@ sgmllib3k = "^1.0.0"
requests = ">=2.20.0"


# Scriv
# -----

[tool.scriv]
version = "literal: pyproject.toml: tool.poetry.version"
categories = [
"Python support",
"Added",
"Fixed",
"Removed",
"Changed",
"Deprecated",
"Security",
"Documentation",
"Project development",
]
entry_title_template = "{{ version }} - {{ date.strftime('%Y-%m-%d') }}"
format = "rst"
fragment_directory = "changelog.d"
insert_marker = "scriv-insert-here"
main_branches = ["develop", "master"]
new_fragment_template = "file: fragment-template.rst.txt"


# Isort
# -----

[tool.isort]
profile = "black"


# Mypy
# ----

[tool.mypy]
packages = "feedparser"
show_error_codes = true
sqlite_cache = true


# Coverage
# coverage
# --------

[tool.coverage.run]
Expand All @@ -97,10 +57,50 @@ fail_under = 93
directory = "htmlcov/"


# Pytest
# isort
# -----

[tool.isort]
profile = "black"


# mypy
# ----

[tool.mypy]
packages = "feedparser"
show_error_codes = true
sqlite_cache = true


# pytest
# ------

[tool.pytest.ini_options]
filterwarnings = [
"error",
]


# scriv
# -----

[tool.scriv]
version = "literal: pyproject.toml: tool.poetry.version"
categories = [
"Python support",
"Added",
"Fixed",
"Removed",
"Changed",
"Deprecated",
"Security",
"Documentation",
"Project development",
]
entry_title_template = "{{ version }} - {{ date.strftime('%Y-%m-%d') }}"
format = "rst"
fragment_directory = "changelog.d"
insert_marker = "scriv-insert-here"
main_branches = ["develop", "master"]
new_fragment_template = "file: fragment-template.rst.txt"
24 changes: 12 additions & 12 deletions requirements/docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
alabaster==0.7.16 ; python_version >= "3.9"
babel==2.15.0 ; python_version >= "3.9"
certifi==2024.7.4 ; python_version >= "3.9"
charset-normalizer==3.3.2 ; python_version >= "3.9"
babel==2.16.0 ; python_version >= "3.9"
certifi==2024.8.30 ; python_version >= "3.9"
charset-normalizer==3.4.0 ; python_version >= "3.9"
colorama==0.4.6 ; python_version >= "3.9" and sys_platform == "win32"
docutils==0.20.1 ; python_version >= "3.9"
idna==3.7 ; python_version >= "3.9"
docutils==0.21.2 ; python_version >= "3.9"
idna==3.10 ; python_version >= "3.9"
imagesize==1.4.1 ; python_version >= "3.9"
importlib-metadata==8.2.0 ; python_version < "3.10" and python_version >= "3.9"
importlib-metadata==8.5.0 ; python_version < "3.10" and python_version >= "3.9"
jinja2==3.1.4 ; python_version >= "3.9"
markupsafe==2.1.5 ; python_version >= "3.9"
packaging==24.1 ; python_version >= "3.9"
markupsafe==3.0.2 ; python_version >= "3.9"
packaging==24.2 ; python_version >= "3.9"
pygments==2.18.0 ; python_version >= "3.9"
requests==2.32.3 ; python_version >= "3.9"
snowballstemmer==2.2.0 ; python_version >= "3.9"
sphinx-rtd-theme==2.0.0 ; python_version >= "3.9"
sphinx-rtd-theme==3.0.2 ; python_version >= "3.9"
sphinx==7.4.7 ; python_version >= "3.9"
sphinxcontrib-applehelp==2.0.0 ; python_version >= "3.9"
sphinxcontrib-devhelp==2.0.0 ; python_version >= "3.9"
Expand All @@ -22,6 +22,6 @@ sphinxcontrib-jquery==4.1 ; python_version >= "3.9"
sphinxcontrib-jsmath==1.0.1 ; python_version >= "3.9"
sphinxcontrib-qthelp==2.0.0 ; python_version >= "3.9"
sphinxcontrib-serializinghtml==2.0.0 ; python_version >= "3.9"
tomli==2.0.1 ; python_version < "3.11" and python_version >= "3.9"
urllib3==2.2.2 ; python_version >= "3.9"
zipp==3.19.2 ; python_version < "3.10" and python_version >= "3.9"
tomli==2.2.1 ; python_version < "3.11" and python_version >= "3.9"
urllib3==2.2.3 ; python_version >= "3.9"
zipp==3.21.0 ; python_version < "3.10" and python_version >= "3.9"
8 changes: 4 additions & 4 deletions requirements/mypy/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mypy-extensions==1.0.0 ; python_version >= "3.9"
mypy==1.11.1 ; python_version >= "3.9"
tomli==2.0.1 ; python_version < "3.11" and python_version >= "3.9"
mypy==1.13.0 ; python_version >= "3.9"
tomli==2.2.1 ; python_version < "3.11" and python_version >= "3.9"
types-chardet==5.0.4.6 ; python_version >= "3.9"
types-requests==2.32.0.20240712 ; python_version >= "3.9"
types-requests==2.32.0.20241016 ; python_version >= "3.9"
typing-extensions==4.12.2 ; python_version >= "3.9"
urllib3==2.2.2 ; python_version >= "3.9"
urllib3==2.2.3 ; python_version >= "3.9"
24 changes: 12 additions & 12 deletions requirements/test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
certifi==2024.7.4 ; python_version >= "3.9"
charset-normalizer==3.3.2 ; python_version >= "3.9"
certifi==2024.8.30 ; python_version >= "3.9"
charset-normalizer==3.4.0 ; python_version >= "3.9"
colorama==0.4.6 ; python_version >= "3.9" and sys_platform == "win32"
coverage[toml]==7.6.1 ; python_version >= "3.9"
coverage[toml]==7.6.9 ; python_version >= "3.9"
exceptiongroup==1.2.2 ; python_version < "3.11" and python_version >= "3.9"
idna==3.7 ; python_version >= "3.9"
importlib-metadata==8.2.0 ; python_version < "3.10" and python_version >= "3.9"
idna==3.10 ; python_version >= "3.9"
importlib-metadata==8.5.0 ; python_version < "3.10" and python_version >= "3.9"
iniconfig==2.0.0 ; python_version >= "3.9"
packaging==24.1 ; python_version >= "3.9"
packaging==24.2 ; python_version >= "3.9"
pluggy==1.5.0 ; python_version >= "3.9"
pytest-randomly==3.15.0 ; python_version >= "3.9"
pytest==8.3.2 ; python_version >= "3.9"
pyyaml==6.0.1 ; python_version >= "3.9"
pytest-randomly==3.16.0 ; python_version >= "3.9"
pytest==8.3.4 ; python_version >= "3.9"
pyyaml==6.0.2 ; python_version >= "3.9"
requests==2.32.3 ; python_version >= "3.9"
responses==0.25.3 ; python_version >= "3.9"
tomli==2.0.1 ; python_full_version <= "3.11.0a6" and python_version >= "3.9"
urllib3==2.2.2 ; python_version >= "3.9"
zipp==3.19.2 ; python_version < "3.10" and python_version >= "3.9"
tomli==2.2.1 ; python_full_version <= "3.11.0a6" and python_version >= "3.9"
urllib3==2.2.3 ; python_version >= "3.9"
zipp==3.21.0 ; python_version < "3.10" and python_version >= "3.9"
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ commands =
[testenv:docs]
description = Build and lint the documentation
skip_install = True
base_python = py3.12
base_python = py3.13
deps = -r requirements/docs/requirements.txt
commands =
sphinx-build -EWq -j auto --keep-going docs/ build/docs/


[testenv:mypy]
description = Lint type annotations
base_python = py3.12
base_python = py3.13
deps = -r requirements/mypy/requirements.txt
commands =
mypy
Expand All @@ -68,7 +68,7 @@ commands =
recreate = true
skip_install = true
description = Update requirements and tool versions
base_python = py3.12
base_python = py3.13
setenv =
# The actionlint pre-commit hook needs the GOCACHE environment variables.
GOCACHE={env_dir}/.gocache
Expand Down

0 comments on commit c0b5f99

Please sign in to comment.