Skip to content

Commit 46a3f02

Browse files
authored
Merge branch 'main' into repl_ki
2 parents 39d0ca2 + d63f3a9 commit 46a3f02

File tree

193 files changed

+6216
-5083
lines changed

Some content is hidden

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

193 files changed

+6216
-5083
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: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,37 @@ jobs:
1717
issues: write
1818
repository-projects: write
1919
contents: write
20+
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: true # credentials are needed to push commits
2326
- name: Setup python
2427
uses: actions/setup-python@v5
2528
with:
26-
python-version: "3.8"
29+
python-version: "3.9"
30+
2731
- name: Bump dependencies
2832
run: |
2933
python -m pip install -U pip pre-commit
3034
python -m pip install -r test-requirements.txt
31-
pip-compile -U test-requirements.in
32-
pip-compile -U docs-requirements.in
35+
uv pip compile --universal --python-version=3.9 --upgrade test-requirements.in -o test-requirements.txt
36+
uv pip compile --universal --python-version=3.11 --upgrade docs-requirements.in -o docs-requirements.txt
3337
pre-commit autoupdate --jobs 0
38+
39+
- name: Install new requirements
40+
run: python -m pip install -r test-requirements.txt
41+
42+
# apply newer versions' formatting
3443
- name: Black
44+
run: black src/trio
45+
46+
- name: uv
3547
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
48+
uv pip compile --universal --python-version=3.9 test-requirements.in -o test-requirements.txt
49+
uv pip compile --universal --python-version=3.11 docs-requirements.in -o docs-requirements.txt
50+
4051
- name: Commit changes and create automerge PR
4152
env:
4253
GH_TOKEN: ${{ github.token }}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check newsfragment
2+
3+
permissions: {}
4+
5+
on:
6+
pull_request:
7+
types: [labeled, unlabeled, opened, synchronize]
8+
branches:
9+
- main
10+
11+
jobs:
12+
check-newsfragment:
13+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip newsfragment') }}
14+
runs-on: 'ubuntu-latest'
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
persist-credentials: false
21+
22+
- name: Check newsfragments
23+
run: |
24+
if git diff --name-only origin/main | grep -v '/_tests/' | grep 'src/trio/'; then
25+
git diff --name-only origin/main | grep 'newsfragments/' || exit 1
26+
fi

0 commit comments

Comments
 (0)