Skip to content

Commit f92821a

Browse files
authored
Update ruff to version 0.5.2 and workflows update (#892)
* Update tests.yml * Update pypi.yml * Update tests.yml * bugfix * Update dependabot.yml * Update ruff to version 0.5.2 * Update setup.py * Update requirements.txt * Update ruff to version 0.5.2 * Create ruff.toml * Update ruff.toml * Update ruff.toml * Update ruff.toml * revert * Align torchvision version with test version * Update tests.yml * Update ruff.toml * Update ruff.toml * revert * revert
1 parent d7a3eb0 commit f92821a

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

.github/dependabot.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: 2
22
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
37
- package-ecosystem: "pip"
48
directory: "/"
59
schedule:
@@ -8,4 +12,4 @@ updates:
812
open-pull-requests-limit: 2
913
allow:
1014
- dependency-name: "timm"
11-
dependency-type: "all"
15+
dependency-type: "all"

.github/workflows/pypi.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
- name: Set up Python
13-
uses: actions/setup-python@v2
13+
uses: actions/setup-python@v5
1414
with:
15-
python-version: '3.7'
15+
python-version: '3.9'
1616
- name: Install dependencies
1717
run: |
18-
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine mock
18+
python -m pip install --upgrade pip uv
19+
python -m uv pip install setuptools wheel twine mock
2020
- name: Build and publish
2121
env:
2222
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

.github/workflows/tests.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
python-version: "3.11"
2323
- name: Install dependencies
2424
run: |
25-
python -m pip install --upgrade pip
26-
pip install ruff==0.4.6
25+
python -m pip install --upgrade pip uv
26+
python -m uv pip install ruff==0.5.2
2727
# Update output format to enable automatic inline annotations.
2828
- name: Run Ruff Linter
2929
run: ruff check --output-format=github
@@ -34,15 +34,15 @@ jobs:
3434
runs-on: ubuntu-latest
3535
needs: [style]
3636
steps:
37-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
3838
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v2
39+
uses: actions/setup-python@v5
4040
with:
41-
python-version: 3.7
41+
python-version: 3.9
4242
- name: Install dependencies
4343
run: |
44-
python -m pip install --upgrade pip
45-
pip install torch==1.9.0+cpu torchvision==0.10.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
44+
python -m pip install --upgrade pip uv
45+
python -m uv pip install torch==2.3.1+cpu torchvision==0.18.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
4646
make install_dev
4747
- name: Test with pytest
4848
run: make test

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
URL = "https://github.com/qubvel/segmentation_models.pytorch"
1818
1919
AUTHOR = "Pavel Iakubovskii"
20-
REQUIRES_PYTHON = ">=3.7.0"
20+
REQUIRES_PYTHON = ">=3.9.0"
2121
VERSION = None
2222

2323
# The rest you shouldn't have to touch too much :)
@@ -35,7 +35,7 @@
3535
REQUIRED = []
3636

3737
# What packages are optional?
38-
EXTRAS = {"test": ["pytest", "mock", "ruff==0.4.6"]}
38+
EXTRAS = {"test": ["pytest", "mock", "ruff==0.5.2"]}
3939

4040
# Import the README and use it as the long-description.
4141
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!

0 commit comments

Comments
 (0)