Skip to content

Commit 9fc465a

Browse files
committed
# Conflicts: # ruff.toml
2 parents 91f75bb + aa89106 commit 9fc465a

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ jobs:
6262
continue-on-error: ${{ matrix.python == '3.14' }}
6363
steps:
6464
- uses: actions/checkout@v4
65+
- name: Install build dependencies
66+
# Install dependencies for building packages on pre-release Pythons
67+
# jaraco/skeleton#161
68+
if: matrix.python == '3.14' && matrix.platform == 'ubuntu-latest'
69+
run: |
70+
sudo apt update
71+
sudo apt install -y libxml2-dev libxslt-dev
6572
- name: Setup Python
6673
uses: actions/setup-python@v4
6774
with:

.readthedocs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ python:
55
extra_requirements:
66
- doc
77

8+
sphinx:
9+
configuration: docs/conf.py
10+
811
# required boilerplate readthedocs/readthedocs.org#10401
912
build:
1013
os: ubuntu-lts-latest

ruff.toml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@ extend = "pyproject.toml"
33

44
[lint]
55
extend-select = [
6-
"C901",
7-
"PERF401",
8-
"W",
6+
# upstream
7+
8+
"C901", # complex-structure
9+
"I", # isort
10+
"PERF401", # manual-list-comprehension
11+
"W", # pycodestyle Warning
12+
13+
# Ensure modern type annotation syntax and best practices
14+
# Not including those covered by type-checkers or exclusive to Python 3.11+
15+
"FA", # flake8-future-annotations
16+
"F404", # late-future-import
17+
"PYI", # flake8-pyi
18+
"UP006", # non-pep585-annotation
19+
"UP007", # non-pep604-annotation
20+
"UP010", # unnecessary-future-import
21+
"UP035", # deprecated-import
22+
"UP037", # quoted-annotation
23+
"UP043", # unnecessary-default-type-args
924

1025
# local
1126
"B",
12-
"I",
1327
"ISC",
1428
"PERF",
1529
"RUF010",
@@ -19,6 +33,11 @@ extend-select = [
1933
"YTT",
2034
]
2135
ignore = [
36+
# upstream
37+
38+
# Typeshed rejects complex or non-literal defaults for maintenance and testing reasons,
39+
# irrelevant to this project.
40+
"PYI011", # typed-argument-default-in-stub
2241
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
2342
"W191",
2443
"E111",

0 commit comments

Comments
 (0)