Merge pull request #847 from Creatrix-Net/deepsource-transform-ef5e6212 #626
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: | |
pull_request: | |
types: [ opened, reopened, synchronize ] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ '3.10', '3.x' ] | |
name: check ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up CPython ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
id: install-deps | |
run: | | |
python -m pip install --upgrade pip setuptools wheel black requests pipenv | |
pipenv requirements > requirements.txt | |
python -m pip install -U -r requirements.txt | |
- name: Setup node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Run black | |
if: ${{ always() && steps.install-deps.outcome == 'success' }} | |
run: | | |
black --check minato_namikaze launcher.py |