Skip to content

Commit 9d6f667

Browse files
committed
Render template ../cookiecutter-python-cli at d9e1795124
1 parent af654b5 commit 9d6f667

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/workflows/check.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,21 @@ jobs:
116116
apt-cache --generate pkgnames \
117117
| grep --line-regexp --fixed-strings "$deps" \
118118
| xargs apt install -y
119+
- name: Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057968
120+
env:
121+
DEBIAN_FRONTEND: noninteractive
122+
shell: bash
123+
run: |
124+
set -ex
125+
grep "Suites: testing" /etc/apt/sources.list.d/debian.sources || exit 0
126+
python3_pycodestyle=$(dpkg-query --showformat='${Version}\n' --show python3-pycodestyle)
127+
python3_flake8=$(dpkg-query --showformat='${Version}\n' --show python3-flake8)
128+
if [[ $python3_pycodestyle == 2.11.* && $python3_flake8 == 5.* ]]; then
129+
echo 'deb https://deb.debian.org/debian unstable main' >/etc/apt/sources.list.d/debian-unstable.list
130+
echo 'APT::Default-Release "testing";' >/etc/apt/apt.conf.d/debian-release
131+
apt update
132+
apt install -t unstable -y python3-flake8
133+
fi
119134
- name: Workaround for https://github.com/actions/checkout/pull/762 not persisting
120135
run: git config --global --add safe.directory "$PWD"
121136
- name: Install remaining dependencies

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dev = [
3939
"flake8",
4040
"isort >= 5.0",
4141
"mypy >= 0.900",
42-
"prysk == 0.16.0",
42+
"prysk == 0.17.0",
4343
"twine",
4444
"types-PyYAML",
4545
]

tests/prysk-noescape.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#!/usr/bin/env python3
22

3-
from pathlib import Path
43
import runpy
54

65
import prysk.test # type: ignore [import]
76

87
prysk.test._IS_ESCAPING_NEEDED = lambda _: False
9-
prysk.test._findtests = lambda paths: map(Path, paths) # https://github.com/prysk/prysk/issues/224
108
runpy.run_module('prysk')

0 commit comments

Comments
 (0)