Merge pull request #104 from wafflestudio/fix/resolve-conflict #95
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: [push] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: install poetry | |
run: pipx install poetry | |
- name: use python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: poetry | |
- name: install black, pylint | |
run: poetry install --only dev | |
- name: check if code linted | |
run: | | |
poetry run black --check $(git ls-files '*.py') | |
poetry run pylint --recursive=yes $(git ls-files '*.py') || true |