| 1 |
# .woodpecker.yml |
| 2 |
steps: |
| 3 |
- name: static-typing-checking |
| 4 |
image: python:3 |
| 5 |
when: |
| 6 |
- event: [push, tag, manual] |
| 7 |
commands: |
| 8 |
- ls -la |
| 9 |
- python3 --version |
| 10 |
- python3 -m pip install --upgrade pip |
| 11 |
- python3 -m pip install mypy |
| 12 |
- echo "Run mypy..." |
| 13 |
- mypy kernel_hardening_checker/ --show-error-context --pretty --no-incremental --check-untyped-defs --disallow-untyped-defs --strict-equality |
| 14 |
- name: pylint-checking |
| 15 |
image: python:3 |
| 16 |
when: |
| 17 |
- event: [push, tag, manual] |
| 18 |
commands: |
| 19 |
- ls -la |
| 20 |
- python3 --version |
| 21 |
- python3 -m pip install --upgrade pip |
| 22 |
- python3 -m pip install pylint |
| 23 |
- echo "Run pylint..." |
| 24 |
- pylint --recursive=y kernel_hardening_checker |