Skip to content
Snippets Groups Projects
Commit 7a72892d authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Ruff precommit

parent ea0bfedc
No related branches found
No related tags found
1 merge request!360Ruff precommit
Pipeline #96810 failed
......@@ -4,7 +4,8 @@ stages:
before_script:
- apt-get update --yes
- apt-get install --yes build-essential cmake graphviz python3-pyqt5 xvfb xdg-utils lcov
# - apt-get install --yes build-essential cmake graphviz python3-pyqt5 xvfb xdg-utils lcov
- apt-get install --yes graphviz python3-pyqt5 xvfb xdg-utils
- python -m pip install --upgrade pip
- python --version
- pip install -r requirements.txt
......@@ -123,6 +124,13 @@ run-doc-test:
# Run linting on doc-strings
- pip install black velin
- velin . --check --black
- pip install ruff
- ruff b_asic --format=gitlab > ruff.json
artifacts:
name: "${CI_PROJECT_NAME}_code_quality"
when: always
reports:
codequality: ruff.json
pages:
variables:
......
......@@ -22,3 +22,8 @@ repos:
rev: 0.0.11
hooks:
- id: velin
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.265"
hooks:
- id: ruff
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment