WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Enable ruff rule RUF (#2457) #1147

Enable ruff rule RUF (#2457)

Enable ruff rule RUF (#2457) #1147

Workflow file for this run

name: Code Checks
on:
push:
branches:
- master
- dev
pull_request:
branches:
- master
- dev
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
# Ref: https://github.com/tox-dev/action-pre-commit-uv
- uses: tox-dev/action-pre-commit-uv@246b66536e366bb885f52d61983bf32f7c95e8b1 # v1.0.3
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v5
- name: Install latest version of uv and set up Python ${{ matrix.python-version }}
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
activate-environment: "true"
- name: Install dependencies (including test group)
run: uv sync --extra test
- name: Display the project's dependency tree (including information on outdated packages)
run: uv tree --outdated
- name: Run Checking Mechanisms
run: make check