Skip to content

Commit eec2ef7

Browse files
Update style requirements in preparation for Ruff linter (#115)
* Update style requirements in preparation for Ruff linter Keep old requirements for black/isort/flake8/ for transition Adds Ruff * Disable style for core
1 parent a411d40 commit eec2ef7

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

spackbot/workers.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,12 @@ async def fix_style_task(event):
326326
# Style tool is run from the root dir expressed as {0}
327327
upstream_url = helpers.PROJECTS[repo_name].upstream_url
328328
if repo_name == "spack":
329+
await gh.post(
330+
event.data["issue"]["comments_url"], {}, data={"body": "Spackbot style is disabled while transitioning to Ruff"}
331+
)
332+
logger.info("Skipping style for core")
333+
return
334+
329335
style_tool = (
330336
"bin/spack",
331337
["--color", "never", "style", "--fix", "--root", "{0}"],

workers/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM python:3.14
22

3-
ADD https://raw.githubusercontent.com/spack/spack/refs/heads/develop/.github/workflows/requirements/style/requirements.txt /source/style-requirements.txt
43
COPY workers/requirements.txt /source/requirements.txt
4+
COPY workers/style-requirements.txt /source/style-requirements.txt
55

66
RUN pip3 install --upgrade pip setuptools wheel && \
77
pip3 install -r /source/requirements.txt && \

workers/style-requirements.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
black==25.12.0
2+
clingo==5.8.0
3+
flake8==7.3.0
4+
isort==7.0.0
5+
mypy==1.20.0
6+
types-six==1.17.0.20251009
7+
vermin==1.8.0
8+
pylint==4.0.5
9+
docutils==0.22.4
10+
ruamel.yaml==0.19.1
11+
slotscheck==0.19.1
12+
ruff==0.15.7

0 commit comments

Comments
 (0)