Skip to content

Commit b7d012f

Browse files
committed
switch to uv #87
1 parent 02e555b commit b7d012f

File tree

19 files changed

+2800
-198
lines changed

19 files changed

+2800
-198
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
timeout-minutes: 60
6969
- name: Run Static Analysis
7070
run: |
71-
just run ./manage.py makemigrations
71+
just manage makemigrations
7272
just test ./tests/verify_environment.py
7373
just check-lint
7474
just check-format

.github/workflows/test.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ jobs:
121121
timeout-minutes: 60
122122
- name: Run Unit Tests
123123
run: |
124-
just run ./manage.py makemigrations
124+
just manage makemigrations
125125
just test ./tests/verify_environment.py
126-
just test-all
126+
just test-all ${{ matrix.psycopg-version }}
127127
- name: Store coverage files
128128
uses: actions/upload-artifact@v4
129129
with:
@@ -181,9 +181,9 @@ jobs:
181181
timeout-minutes: 60
182182
- name: Run Unit Tests
183183
run: |
184-
just run ./manage.py makemigrations
184+
just manage makemigrations
185185
just test ./tests/verify_environment.py
186-
just test-all
186+
just test-all dev
187187
- name: Store coverage files
188188
uses: actions/upload-artifact@v4
189189
with:
@@ -279,9 +279,9 @@ jobs:
279279
run: just test-lock mysqlclient==${{ matrix.mysqlclient-version }}
280280
- name: Run Unit Tests
281281
run: |
282-
just run ./manage.py makemigrations
282+
just manage makemigrations
283283
just test ./tests/verify_environment.py
284-
just test-all
284+
just test-all ${{ matrix.mysqlclient-version }}
285285
- name: Store coverage files
286286
uses: actions/upload-artifact@v4
287287
with:
@@ -381,9 +381,9 @@ jobs:
381381
run: just test-lock mysqlclient==${{ matrix.mysqlclient-version }}
382382
- name: Run Unit Tests
383383
run: |
384-
just run ./manage.py makemigrations
384+
just manage makemigrations
385385
just test ./tests/verify_environment.py
386-
just test-all
386+
just test-all ${{ matrix.mysqlclient-version }}
387387
- name: Store coverage files
388388
uses: actions/upload-artifact@v4
389389
with:
@@ -480,13 +480,12 @@ jobs:
480480
- name: Install Release Dependencies
481481
run: |
482482
just init ${{ steps.sp.outputs.python-path }}
483-
just install-oracle
484483
just test-lock Django~=${{ matrix.django-version }}.0
485484
- name: Run Full Unit Tests
486485
run: |
487-
just run ./manage.py makemigrations
486+
just manage makemigrations
488487
just test ./tests/verify_environment.py
489-
just test
488+
just test-all oracle
490489
491490
- name: Store coverage files
492491
uses: actions/upload-artifact@v4
@@ -543,9 +542,9 @@ jobs:
543542
timeout-minutes: 60
544543
- name: Run Unit Tests
545544
run: |
546-
just run ./manage.py makemigrations
545+
just manage makemigrations
547546
just test ./tests/verify_environment.py
548-
just test-all
547+
just test-all dev
549548
- name: Store coverage files
550549
uses: actions/upload-artifact@v4
551550
with:
@@ -602,9 +601,9 @@ jobs:
602601
timeout-minutes: 60
603602
- name: Run Unit Tests
604603
run: |
605-
just run ./manage.py makemigrations
604+
just manage makemigrations
606605
just test ./tests/verify_environment.py
607-
just test-all
606+
just test-all ${{ matrix.psycopg-version }}
608607
- name: Store coverage files
609608
uses: actions/upload-artifact@v4
610609
with:

doc/broken_links.py

Lines changed: 0 additions & 18 deletions
This file was deleted.

doc/source/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ and accessible as their enumeration type rather than by-value:**
125125
int_enum=3 # by-value assignment also works
126126
)
127127
128-
assert instance.txt_enum == MyModel.TextEnum('V1')
129-
assert instance.txt_enum.label == 'Value 1'
128+
assert instance.txt_enum is MyModel.TextEnum('V1')
129+
assert instance.txt_enum.label is 'Value 1'
130130
131-
assert instance.int_enum == MyModel.IntEnum['THREE']
132-
assert instance.int_enum.value == 3
131+
assert instance.int_enum is MyModel.IntEnum['THREE']
132+
assert instance.int_enum.value is 3
133133
134134
135135
Flag Support
@@ -203,9 +203,9 @@ rich enumeration fields:
203203
instance = TextChoicesExample.objects.create(
204204
color=TextChoicesExample.Color('FF0000')
205205
)
206-
assert instance.color == TextChoicesExample.Color('Red')
207-
assert instance.color == TextChoicesExample.Color('R')
208-
assert instance.color == TextChoicesExample.Color((1, 0, 0))
206+
assert instance.color is TextChoicesExample.Color('Red')
207+
assert instance.color is TextChoicesExample.Color('R')
208+
assert instance.color is TextChoicesExample.Color((1, 0, 0))
209209
210210
# direct comparison to any symmetric value also works
211211
assert instance.color == 'Red'

0 commit comments

Comments
 (0)