diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 46fae9fe..799be4cd 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -26,7 +26,7 @@ jobs: python-version: '3.12' - name: Install dependencies run: | - python -m pip install --upgrade meson PyYAML + python -m pip install --upgrade meson PyYAML ruff sudo apt update sudo apt install -y \ doxygen libxcb-xkb-dev valgrind ninja-build \ @@ -81,3 +81,6 @@ jobs: name: doxygen-docs path: | build/html/ + - name: Ruff format + run: + ruff format --line-length=88 --check --diff . diff --git a/scripts/perfect_hash.py b/scripts/perfect_hash.py index a017bb65..f70adf8a 100644 --- a/scripts/perfect_hash.py +++ b/scripts/perfect_hash.py @@ -75,6 +75,7 @@ with a new graph, and thereby discarding the vertex values from the failed attempt. """ + from __future__ import absolute_import, division, print_function import sys diff --git a/test/symbols-leak-test.py b/test/symbols-leak-test.py index 4fee7475..6915780d 100755 --- a/test/symbols-leak-test.py +++ b/test/symbols-leak-test.py @@ -4,6 +4,7 @@ If this fails, please update the appropriate .map file (adding new version nodes as needed). """ + import os import pathlib import re