File tree 3 files changed +12
-15
lines changed
3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ permissions:
7
7
8
8
env :
9
9
FORCE_COLOR : 1
10
- PIP_DISABLE_PIP_VERSION_CHECK : 1
11
10
12
11
jobs :
13
12
test :
@@ -26,25 +25,22 @@ jobs:
26
25
with :
27
26
python-version : ${{ matrix.python-version }}
28
27
allow-prereleases : true
29
- cache : pip
30
28
31
- - name : Install dependencies
32
- run : |
33
- python -m pip install -U pip
34
- python -m pip install -U tox
29
+ - name : Install uv
30
+ uses : hynek/setup-cached-uv@v2
35
31
36
32
- name : Tox tests
37
33
run : |
38
- tox -e py
34
+ uvx --with tox-uv tox -e py
39
35
40
36
- name : Test CLI
41
37
run : |
42
- tox -e cli
38
+ uvx --with tox-uv tox -e cli
43
39
44
40
- name : Tox tests (pins)
45
41
if : matrix.python-version == '3.12' && matrix.os == 'ubuntu-latest'
46
42
run : |
47
- tox -e pins
43
+ uvx --with tox-uv tox -e pins
48
44
49
45
- name : Upload coverage
50
46
Original file line number Diff line number Diff line change @@ -85,10 +85,11 @@ lint.select = [
85
85
" YTT" , # flake8-2020
86
86
]
87
87
lint.ignore = [
88
- " E203" , # Whitespace before ':'
89
- " E221" , # Multiple spaces before operator
90
- " E226" , # Missing whitespace around arithmetic operator
91
- " E241" , # Multiple spaces after ','
88
+ " E203" , # Whitespace before ':'
89
+ " E221" , # Multiple spaces before operator
90
+ " E226" , # Missing whitespace around arithmetic operator
91
+ " E241" , # Multiple spaces after ','
92
+ " UP038" , # Makes code slower and more verbose
92
93
]
93
94
lint.flake8-import-conventions.aliases.datetime = " dt"
94
95
lint.flake8-import-conventions.banned-from = [ " datetime" ]
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ commands =
46
46
pre-commit run --all-files --show-diff-on-failure
47
47
48
48
[testenv:pins]
49
+ deps =
50
+ -r requirements.txt
49
51
extras =
50
52
None
51
- commands_pre =
52
- {envpython} -m pip install -r requirements.txt
You can’t perform that action at this time.
0 commit comments