Repository: qtile/qtile (branch: doc-fixes)
Commit date: 2024-01-19T18:16:21Z

Workflow file: .github/workflows/pre_commit.yml (Run pre-commit)
name: Run pre-commit

on:
    push:
    pull_request:

jobs:
    check:
        runs-on: ubuntu-latest
        services:
          pypi_wayback:
            image: ghcr.io/waleko/pypi-wayback
            ports:
              - 8629:8080
        steps:
            - uses: actions/checkout@v4
            - uses: actions/setup-python@v4
            - name: Install dependencies
              run: |
                sudo apt update
                sudo apt install --no-install-recommends libxkbcommon-dev
            - uses: pre-commit/action@v3.0.0

env:
  PIP_INDEX_URL: http://localhost:8629/2024-01-19
  UV_INDEX_URL: http://localhost:8629/2024-01-19


Failed build logs:
step_name: check/5_Run pre-commitaction@v3.0.0.txt
log: ##[group]Run pre-commit/action@v3.0.0
with:
  extra_args: --all-files
##[endgroup]
##[group]Run python -m pip install pre-commit
[36;1mpython -m pip install pre-commit[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
Defaulting to user installation because normal site-packages is not writeable
Collecting pre-commit
  Downloading pre_commit-3.6.0-py2.py3-none-any.whl (204 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 204.0/204.0 KB 6.0 MB/s eta 0:00:00
Collecting virtualenv>=20.10.0
  Downloading virtualenv-20.25.0-py3-none-any.whl (3.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 105.0 MB/s eta 0:00:00
Requirement already satisfied: pyyaml>=5.1 in /usr/lib/python3/dist-packages (from pre-commit) (5.4.1)
Collecting identify>=1.0.0
  Downloading identify-2.5.33-py2.py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.9/98.9 KB 40.0 MB/s eta 0:00:00
Collecting cfgv>=2.0.0
  Downloading cfgv-3.4.0-py2.py3-none-any.whl (7.2 kB)
Collecting nodeenv>=0.11.1
  Downloading nodeenv-1.8.0-py2.py3-none-any.whl (22 kB)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from nodeenv>=0.11.1->pre-commit) (59.6.0)
Requirement already satisfied: platformdirs<5,>=3.9.1 in /usr/local/lib/python3.10/dist-packages (from virtualenv>=20.10.0->pre-commit) (4.1.0)
Collecting filelock<4,>=3.12.2
  Downloading filelock-3.13.1-py3-none-any.whl (11 kB)
Collecting distlib<1,>=0.3.7
  Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 86.2 MB/s eta 0:00:00
Installing collected packages: distlib, nodeenv, identify, filelock, cfgv, virtualenv, pre-commit
Successfully installed cfgv-3.4.0 distlib-0.3.8 filelock-3.13.1 identify-2.5.33 nodeenv-1.8.0 pre-commit-3.6.0 virtualenv-20.25.0
##[group]Run python -m pip freeze --local
[36;1mpython -m pip freeze --local[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
argcomplete==3.2.1
cfgv==3.4.0
distlib==0.3.8
filelock==3.13.1
identify==2.5.33
nodeenv==1.8.0
packaging==23.2
pipx==1.4.2
platformdirs==4.1.0
pre-commit==3.6.0
tomli==2.0.1
userpath==1.9.1
virtualenv==20.25.0
##[group]Run actions/cache@v3
with:
  path: ~/.cache/pre-commit
  key: pre-commit-3||05c1fbbb63b353467651b511e6ac241ffd2d8e71749cfabfe5ee6bc8366d2d02
  enableCrossOsArchive: false
  fail-on-cache-miss: false
  lookup-only: false
##[endgroup]
Received 0 of 37431926 (0.0%), 0.0 MBs/sec
Cache Size: ~36 MB (37431926 B)
[command]/usr/bin/tar -xf /home/runner/work/_temp/a2d2ad42-ae7e-4082-adbf-fd8d469171ad/cache.tzst -P -C /home/runner/work/qtile/qtile --use-compress-program unzstd
Cache restored successfully
Cache restored from key: pre-commit-3||05c1fbbb63b353467651b511e6ac241ffd2d8e71749cfabfe5ee6bc8366d2d02
##[group]Run pre-commit run --show-diff-on-failure --color=always --all-files
[36;1mpre-commit run --show-diff-on-failure --color=always --all-files[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
black....................................................................[42mPassed[m
isort....................................................................[42mPassed[m
flake8...................................................................[41mFailed[m
[2m- hook id: flake8[m
[2m- exit code: 1[m

[1mlibqtile/config.py[m[36m:[m410[36m:[m53[36m:[m [1m[31mW605[m invalid escape sequence '\s'

mypy.....................................................................[42mPassed[m
vulture..................................................................[42mPassed[m
##[error]Process completed with exit code 1.


Changed files:
libqtile/config.py

Fix diff:
diff --git a/libqtile/config.py b/libqtile/config.py
index 7d4c5de0..1abef179 100644
--- a/libqtile/config.py
+++ b/libqtile/config.py
@@ -404,7 +404,7 @@ class ScreenRect:
 
 
 class Screen(CommandObject):
-    """
+    r"""
     A physical screen, and its associated paraphernalia.
 
     Define a screen with a given set of :class:`Bar`\s of a specific geometry. Also,