File tree 6 files changed +35
-19
lines changed
6 files changed +35
-19
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,22 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v4
13
+ - uses : astral-sh/setup-uv@v4
13
14
- uses : actions/setup-python@v5
14
15
with :
15
16
python-version : 3.13
16
17
allow-prereleases : true
17
18
- uses : actions/cache@v4
18
19
with :
19
20
path : ~/.cache/pip
20
- key : ${{ runner.os }}-pip-${{ hashFiles('requirements.txt ') }}
21
+ key : ${{ runner.os }}-uv- pip-${{ hashFiles('pyprojecct.toml ') }}
21
22
- name : Install dependencies
22
23
run : |
23
- python -m pip install --upgrade pip setuptools wheel
24
- python -m pip install pytest-cov -r requirements.txt
24
+ uv pip install pytest-cov
25
+ uv pip install --editable .
25
26
- name : Run tests
26
27
# TODO: #8818 Re-enable quantum tests
27
- run : pytest
28
+ run : uv tool run pytest
28
29
--ignore=computer_vision/cnn_classification.py
29
30
--ignore=docs/conf.py
30
31
--ignore=dynamic_programming/k_means_clustering_tensorflow.py
Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
15
- - run : pip install --user ruff
16
- - run : ruff check --output-format=github .
15
+ - uses : astral-sh/setup-uv@v4
16
+ - run : uvx ruff check --output-format=github .
Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ jobs:
26
26
runs-on : ubuntu-latest
27
27
steps :
28
28
- uses : actions/checkout@v4
29
+ - uses : astral-sh/setup-uv@v4
29
30
- uses : actions/setup-python@v5
30
31
with :
31
32
python-version : 3.13
32
33
allow-prereleases : true
33
- - run : pip install --upgrade pip
34
- - run : pip install myst-parser sphinx-autoapi sphinx-pyproject
34
+ - run : uv pip install myst-parser sphinx-autoapi sphinx-pyproject
35
35
- uses : actions/configure-pages@v5
36
- - run : sphinx-build -c docs . docs/_build/html
36
+ - run : uvx sphinx-build -c docs . docs/_build/html
37
37
- uses : actions/upload-pages-artifact@v3
38
38
with :
39
39
path : docs/_build/html
Original file line number Diff line number Diff line change 16
16
- id : auto-walrus
17
17
18
18
- repo : https://github.com/astral-sh/ruff-pre-commit
19
- rev : v0.8.0
19
+ rev : v0.8.1
20
20
hooks :
21
21
- id : ruff
22
22
- id : ruff-format
Original file line number Diff line number Diff line change @@ -7,8 +7,29 @@ requires-python = ">=3.13"
7
7
classifiers = [
8
8
" Programming Language :: Python :: 3 :: Only" ,
9
9
" Programming Language :: Python :: 3.13" ,
10
-
11
10
]
11
+ dependencies = [
12
+ " beautifulsoup4>=4.12.3" ,
13
+ " fake-useragent>=1.5.1" ,
14
+ " imageio>=2.36.1" ,
15
+ " keras>=3.7" ,
16
+ " lxml>=5.3" ,
17
+ " matplotlib>=3.9.3" ,
18
+ " numpy>=2.1.3" ,
19
+ " opencv-python>=4.10.0.84" ,
20
+ " pandas>=2.2.3" ,
21
+ " pillow>=11" ,
22
+ " requests>=2.32.3" ,
23
+ " rich>=13.9.4" ,
24
+ " scikit-learn>=1.5.2" ,
25
+ " sphinx-pyproject>=0.3" ,
26
+ " statsmodels>=0.14.4" ,
27
+ " sympy>=1.13.3" ,
28
+ " tweepy>=4.14" ,
29
+ " typing-extensions>=4.12.2" ,
30
+ " xgboost>=2.1.3" ,
31
+ ]
32
+
12
33
optional-dependencies.docs = [
13
34
" myst-parser" ,
14
35
" sphinx-autoapi" ,
@@ -61,8 +82,8 @@ lint.select = [
61
82
" UP" , # pyupgrade
62
83
" W" , # pycodestyle
63
84
" YTT" , # flake8-2020
64
- # "ANN", # flake8-annotations # FIX ME?
65
- # "COM", # flake8-commas
85
+ # "ANN", # flake8-annotations -- FIX ME?
86
+ # "COM", # flake8-commas -- DO NOT FIX
66
87
# "D", # pydocstyle -- FIX ME?
67
88
# "ERA", # eradicate -- DO NOT FIX
68
89
# "FBT", # flake8-boolean-trap # FIX ME
Original file line number Diff line number Diff line change 8
8
opencv-python
9
9
pandas
10
10
pillow
11
- # projectq # uncomment once quantum/quantum_random.py is fixed
12
- qiskit ; python_version < '3.12'
13
- qiskit-aer ; python_version < '3.12'
14
11
requests
15
12
rich
16
- # scikit-fuzzy # uncomment once fuzzy_logic/fuzzy_operations.py is fixed
17
13
scikit-learn
18
14
sphinx_pyproject
19
15
statsmodels
20
16
sympy
21
- tensorflow ; python_version < '3.13'
22
17
tweepy
23
- # yulewalker # uncomment once audio_filters/equal_loudness_filter.py is fixed
24
18
typing_extensions
25
19
xgboost
You can’t perform that action at this time.
0 commit comments