Skip to content

Commit

Permalink
build(deps-dev): bump ruff from 0.5.0 to 0.6.4 (#372)
Browse files Browse the repository at this point in the history
* build(deps): bump ruff from 0.5.0 to 0.6.4

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.5.0 to 0.6.4.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.5.0...0.6.4)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* style(pre-commit): bump ruff to 0.6.4

* ci(github): bump python to 3.11

* style(tests): fix lint

* ci(github): bump python to 3.11

* ci(github): fix CI

* ci(tests): fix codecov upload

* ci(github): fixes CI jobs

* feat(docker): speeds up docker build

* ci(scripts): fix uv syntax

* ci(docs): speeds up build stage

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: F-G Fernandez <26927750+frgfm@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and frgfm authored Sep 10, 2024
1 parent 2973184 commit a5c09df
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 105 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [3.8, 3.9, '3.10', 3.11]
python: [3.8, 3.9, '3.10', 3.11, 3.12]
exclude:
- os: macos-latest
python: 3.8
- os: macos-latest
python: 3.9
- os: macos-latest
python: '3.10'
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-build
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -e . --upgrade
python -m pip install --upgrade uv
uv pip install --system -e .
- name: Import package
run: python -c "import holocron; print(holocron.__version__)"

Expand All @@ -40,17 +41,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
architecture: x64
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-build
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine --upgrade
python -m pip install --upgrade uv
uv pip install --system setuptools wheel twine --upgrade
- run: |
python setup.py sdist bdist_wheel
twine check dist/*
Expand All @@ -62,7 +58,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.9"
python-version: "3.11"
- name: Install dependencies
shell: bash -el {0}
run: conda install -y conda-build conda-verify
Expand All @@ -80,7 +76,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -90,7 +86,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.6.1
poetry-version: 1.8.3
- name: Lock the requirements
run: |
cd api
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,17 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('demo/requirements.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r demo/requirements.txt
python -m pip install --upgrade uv
uv pip install --system -r demo/requirements.txt
- name: Run demo app
run: |
screen -dm python demo/app.py --port 8080
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/doc-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ jobs:
see-page-build-payload:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
architecture: x64
- name: check status
run: |
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,14 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-docs
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[docs]"
python -m pip install --upgrade uv
uv pip install --system -e ".[docs]"
- name: Build documentation
run: cd docs && bash build.sh
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install requests
run: pip install requests
- name: Process commit and find merger responsible for labeling
Expand Down
24 changes: 9 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
architecture: x64
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-build
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine --upgrade
python -m pip install --upgrade uv
uv pip install --system setuptools wheel twine --upgrade
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand All @@ -39,15 +34,14 @@ jobs:
needs: pypi-publish
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
architecture: x64
- name: Install package
run: |
python -m pip install --upgrade pip
pip install pylocron
python -m pip install --upgrade uv
uv pip install --system pylocron
python -c "import holocron; print(holocron.__version__)"
conda:
Expand All @@ -59,7 +53,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.9
python-version: 3.11
- name: Install dependencies
shell: bash -el {0}
run: conda install -y conda-build conda-verify anaconda-client
Expand All @@ -84,7 +78,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.9
python-version: 3.11
- name: Install package
run: |
conda install -c frgfm pylocron
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: 3.9
architecture: x64
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-docs
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[docs]"
python -m pip install --upgrade uv
uv pip install --system -e ".[docs]"
- name: Build documentation
run: cd docs && bash build.sh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.11
architecture: x64
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.6.1"
poetry-version: "1.8.3"
- name: Resolve dependencies
run: cd api && poetry export -f requirements.txt --without-hashes --output requirements.txt
- name: Build docker
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
Expand All @@ -28,9 +27,9 @@ jobs:
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-build
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e . --upgrade
pip install onnx onnxruntime
python -m pip install --upgrade uv
uv pip install --system -e . --upgrade
uv pip install --system onnx onnxruntime
- name: Run analysis script
run: python scripts/eval_latency.py rexnet1_0x
8 changes: 4 additions & 4 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -31,7 +31,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -55,7 +55,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -74,7 +74,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
23 changes: 9 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v5
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache python modules
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }}-tests
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[test]" --upgrade
python -m pip install --upgrade uv
uv pip install --system -e ".[test]" --upgrade
- name: Run unittests
run: |
coverage run -m pytest tests/
Expand All @@ -46,18 +40,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
directory: ./coverage-main
fail_ci_if_error: true

api:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python: [3.9]
python: [3.11]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -67,7 +62,7 @@ jobs:
- name: Install poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.6.1
poetry-version: 1.8.3
- name: Lock the requirements
run: |
cd api
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
default_language_version:
python: python3.9
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand All @@ -21,7 +21,7 @@ repos:
args: ['--branch', 'main']
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.5.0'
rev: 'v0.6.4'
hooks:
- id: ruff
args:
Expand Down
Loading

0 comments on commit a5c09df

Please sign in to comment.