Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 26, 2025
2 parents 3265224 + aa89106 commit 729feb7
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 12 deletions.
8 changes: 0 additions & 8 deletions .github/dependabot.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ jobs:
continue-on-error: ${{ matrix.python == '3.14' }}
steps:
- uses: actions/checkout@v4
- name: Install build dependencies
# Install dependencies for building packages on pre-release Pythons
# jaraco/skeleton#161
if: matrix.python == '3.14' && matrix.platform == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y libxml2-dev libxslt-dev
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ python:
extra_requirements:
- doc

sphinx:
configuration: docs/conf.py

# required boilerplate readthedocs/readthedocs.org#10401
build:
os: ubuntu-lts-latest
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
.. image:: https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest
:target: https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest

.. image:: https://img.shields.io/badge/skeleton-2024-informational
.. image:: https://img.shields.io/badge/skeleton-2025-informational
:target: https://blog.jaraco.com/skeleton

.. image:: https://tidelift.com/badges/package/pypi/backports.functools_lru_cache
Expand Down
30 changes: 27 additions & 3 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,33 @@ extend = "pyproject.toml"

[lint]
extend-select = [
"C901",
"PERF401",
"W",
# upstream

"C901", # complex-structure
"I", # isort
"PERF401", # manual-list-comprehension
"W", # pycodestyle Warning

# Ensure modern type annotation syntax and best practices
# Not including those covered by type-checkers or exclusive to Python 3.11+
"FA", # flake8-future-annotations
"F404", # late-future-import
"PYI", # flake8-pyi
"UP006", # non-pep585-annotation
"UP007", # non-pep604-annotation
"UP010", # unnecessary-future-import
"UP035", # deprecated-import
"UP037", # quoted-annotation
"UP043", # unnecessary-default-type-args

# local
]
ignore = [
# upstream

# Typeshed rejects complex or non-literal defaults for maintenance and testing reasons,
# irrelevant to this project.
"PYI011", # typed-argument-default-in-stub
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E111",
Expand All @@ -23,6 +45,8 @@ ignore = [
"COM819",
"ISC001",
"ISC002",

# local
]

[format]
Expand Down

0 comments on commit 729feb7

Please sign in to comment.