For now, use a very narrow ruleset. We should expand to use more later.
Signed-off-by: Zack Cerza <zack@cerza.org>
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
"boto>=2.0b4",
"boto3",
"coverage",
- "flake8",
"ipy",
"mock",
"PyJWT",
[tool.setuptools_scm]
version_scheme = "python-simplified-semver"
+
+[tool.ruff]
+lint.select = ["F", "E9"]
[tox]
-envlist = docs, py3, flake8
+envlist = docs, py3
isolated_build = True
[testenv]
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