]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Drop flake8 in favor of ruff
authorZack Cerza <zack@cerza.org>
Tue, 9 Sep 2025 03:18:55 +0000 (21:18 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 7 Nov 2025 20:02:44 +0000 (13:02 -0700)
For now, use a very narrow ruleset. We should expand to use more later.

Signed-off-by: Zack Cerza <zack@cerza.org>
.github/workflows/ci.yml
pyproject.toml
tox.ini

index 4fc1b2c3c9dd466f62808a68ac520f6344aaa679..7d68e59d546fd9842a2558c6fff3c3fbb10a6fee 100644 (file)
@@ -25,10 +25,15 @@ jobs:
         uses: actions/setup-python@v5
         with:
           python-version: ${{ matrix.python }}
-      - name: Install tox
-        run: pip install tox
-      - name: Run flake8
-        run: tox -e flake8
+      - name: Install pipx
+        run: pip install pipx
+      - name: Install uv
+        run: pipx install uv
+      - name: Run pipx ensurepath
+        run: pipx ensurepath
+      - name: Lint
+        run: uv tool run ruff check
+
       - name: Run unit tests
         run: tox -e py3
       - name: Run docs build
index 2d2a01374bdf656a6d9da0ac64ceac8fe9efee18..4d7b191eb2069178ee9b1f54a6ec847afd0af6b9 100644 (file)
@@ -76,7 +76,6 @@ test = [
     "boto>=2.0b4",
     "boto3",
     "coverage",
-    "flake8",
     "ipy",
     "mock",
     "PyJWT",
@@ -137,3 +136,6 @@ exclude = [
 
 [tool.setuptools_scm]
 version_scheme = "python-simplified-semver"
+
+[tool.ruff]
+lint.select = ["F", "E9"]
diff --git a/tox.ini b/tox.ini
index b6722e16da281d448373b09fc62d0aace8124e40..09ab4cfa08fb1ee41eb985de0c6bcc10961ffdbe 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = docs, py3, flake8
+envlist = docs, py3
 isolated_build = True
 
 [testenv]
@@ -14,10 +14,6 @@ log_format = %(asctime)s %(levelname)s %(message)s
 commands =
     python -m pytest --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
 
-[testenv:flake8]
-deps = flake8
-commands = flake8 --select=F,E9 {posargs:teuthology scripts}
-
 [testenv:docs]
 changedir = docs
 extras = docs