Skip to content

Commit

Permalink
Render template ../cookiecutter-python-cli at d9e1795124
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Feb 7, 2024
1 parent 7ebb088 commit fd69803
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dev = [
"flake8",
"isort >= 5.0",
"mypy >= 0.900",
"prysk == 0.16.0",
"prysk == 0.17.0",
"twine",
"types-PyYAML",
]
Expand Down
2 changes: 0 additions & 2 deletions tests/prysk-noescape.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit fd69803

Please sign in to comment.