Skip to content

documentation for hardlinked repositories #45

documentation for hardlinked repositories

documentation for hardlinked repositories #45

Workflow file for this run

name: typehints check
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]
workflow_dispatch:
jobs:
mypy:
name: mypy typehints check
runs-on: 'ubuntu-20.04'
steps:
- name: checkout docker-systemctl-replacement
uses: actions/checkout@v2
with:
path: software
- name: checkout retype
uses: actions/checkout@v2
with:
path: retype
repository: ambv/retype
ref: 04978c6f7dcedb76ff334da8d5be734d3a4ce4b4
# ref: 17.12.0
- name: 'refresh install'
run: |
sudo apt-get update --fix-missing
- name: 'install python3 mypy'
run: |
sudo apt-get install --fix-broken --ignore-missing python3-typed-ast mypy
- name: 'patch socketserver'
run: |
mypy --version
find /usr/lib -name socketserver.pyi | { while read filename
do
if grep TCPServer "$filename" ; then
case "`mypy --version`" in *0.76?)
echo "patch $filename"
sudo sed -i -e "s|RequestHandlerClass:[^()]*BaseRequestHandler.|RequestHandlerClass: Any|" "$filename" || true
grep -2 __init__ "$filename" || true
;; esac
fi
done ; } || true
- name: 'make type (mypy strict type checking)'
id: check
run: |
make type -C software