From fd69803a67c114159aa672c9859c8a2fa575a160 Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Wed, 7 Feb 2024 18:53:22 +0000 Subject: [PATCH] Render template ../cookiecutter-python-cli at d9e1795124 --- .github/workflows/check.yaml | 15 +++++++++++++++ pyproject.toml | 2 +- tests/prysk-noescape.py | 2 -- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index b02164b..4902713 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -116,6 +116,21 @@ jobs: apt-cache --generate pkgnames \ | grep --line-regexp --fixed-strings "$deps" \ | xargs apt install -y + - name: Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057968 + env: + DEBIAN_FRONTEND: noninteractive + shell: bash + run: | + set -ex + grep "Suites: testing" /etc/apt/sources.list.d/debian.sources || exit 0 + python3_pycodestyle=$(dpkg-query --showformat='${Version}\n' --show python3-pycodestyle) + python3_flake8=$(dpkg-query --showformat='${Version}\n' --show python3-flake8) + if [[ $python3_pycodestyle == 2.11.* && $python3_flake8 == 5.* ]]; then + echo 'deb https://deb.debian.org/debian unstable main' >/etc/apt/sources.list.d/debian-unstable.list + echo 'APT::Default-Release "testing";' >/etc/apt/apt.conf.d/debian-release + apt update + apt install -t unstable -y python3-flake8 + fi - name: Workaround for https://github.com/actions/checkout/pull/762 not persisting run: git config --global --add safe.directory "$PWD" - name: Install remaining dependencies diff --git a/pyproject.toml b/pyproject.toml index be70438..e0bcb89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ dev = [ "flake8", "isort >= 5.0", "mypy >= 0.900", - "prysk == 0.16.0", + "prysk == 0.17.0", "twine", "types-PyYAML", ] diff --git a/tests/prysk-noescape.py b/tests/prysk-noescape.py index 6dd0206..b85dbbe 100755 --- a/tests/prysk-noescape.py +++ b/tests/prysk-noescape.py @@ -1,10 +1,8 @@ #!/usr/bin/env python3 -from pathlib import Path import runpy import prysk.test # type: ignore [import] prysk.test._IS_ESCAPING_NEEDED = lambda _: False -prysk.test._findtests = lambda paths: map(Path, paths) # https://github.com/prysk/prysk/issues/224 runpy.run_module('prysk')