Skip to content

Commit b193647

Browse files
committed
Merge branch 'main' of github.com:python-trio/trio into eliminate-unbounded-queue
2 parents 3142762 + a670d60 commit b193647

File tree

199 files changed

+4413
-4605
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+4413
-4605
lines changed

.codecov.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -- repository yaml --
2+
3+
# Explicitly wait for all jobs to finish, as wait_for_ci prematurely triggers.
4+
# See https://github.com/python-trio/trio/issues/2689
5+
codecov:
6+
notify:
7+
# This number needs to be changed whenever the number of runs in CI is changed.
8+
# Another option is codecov-cli: https://github.com/codecov/codecov-cli#send-notifications
9+
after_n_builds: 31
10+
wait_for_ci: false
11+
notify_error: true # if uploads fail, replace cov comment with a comment with errors.
12+
require_ci_to_pass: false
13+
14+
# Publicly exposing the token has some small risks from mistakes or malicious actors.
15+
# See https://docs.codecov.com/docs/codecov-tokens for correctly configuring it.
16+
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
17+
18+
# only post PR comment if coverage changes
19+
comment:
20+
require_changes: true
21+
22+
coverage:
23+
# required range
24+
precision: 5
25+
round: down
26+
range: 100..100
27+
status:
28+
project:
29+
default:
30+
target: 100%
31+
patch:
32+
default:
33+
target: 100% # require patches to be 100%

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# sorting all imports with isort
22
933f77b96f0092e1baab4474a9208fc2e379aa32
3+
# enabling ruff's flake8-commas rule
4+
b25c02a94e2defcb0fad32976b02218be1133bdf

.github/workflows/autodeps.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,35 @@ jobs:
1717
issues: write
1818
repository-projects: write
1919
contents: write
20+
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@v4
2324
- name: Setup python
2425
uses: actions/setup-python@v5
2526
with:
26-
python-version: "3.8"
27+
python-version: "3.9"
28+
2729
- name: Bump dependencies
2830
run: |
2931
python -m pip install -U pip pre-commit
3032
python -m pip install -r test-requirements.txt
31-
uv pip compile --universal --python-version=3.8 --upgrade test-requirements.in -o test-requirements.txt
32-
uv pip compile --universal --python-version=3.8 --upgrade docs-requirements.in -o docs-requirements.txt
33+
uv pip compile --universal --python-version=3.9 --upgrade test-requirements.in -o test-requirements.txt
34+
uv pip compile --universal --python-version=3.11 --upgrade docs-requirements.in -o docs-requirements.txt
3335
pre-commit autoupdate --jobs 0
36+
37+
- name: Install new requirements
38+
run: python -m pip install -r test-requirements.txt
39+
40+
# apply newer versions' formatting
3441
- name: Black
42+
run: black src/trio
43+
44+
- name: uv
3545
run: |
36-
# The new dependencies may contain a new black version.
37-
# Commit any changes immediately.
38-
python -m pip install -r test-requirements.txt
39-
black src/trio
46+
uv pip compile --universal --python-version=3.9 test-requirements.in -o test-requirements.txt
47+
uv pip compile --universal --python-version=3.11 docs-requirements.in -o docs-requirements.txt
48+
4049
- name: Commit changes and create automerge PR
4150
env:
4251
GH_TOKEN: ${{ github.token }}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check newsfragment
2+
3+
on:
4+
pull_request:
5+
types: [labeled, unlabeled, opened, synchronize]
6+
branches:
7+
- main
8+
9+
jobs:
10+
check-newsfragment:
11+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip newsfragment') }}
12+
runs-on: 'ubuntu-latest'
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Check newsfragments
20+
run: |
21+
if git diff --name-only origin/main | grep -v '/_tests/' | grep 'src/trio/'; then
22+
git diff --name-only origin/main | grep 'newsfragments/' || exit 1
23+
fi

0 commit comments

Comments
 (0)