Skip to content

[player] changing /player info to /player stats #1121

[player] changing /player info to /player stats

[player] changing /player info to /player stats #1121

Workflow file for this run

name: Pre-commit
on:
push:
pull_request:
jobs:
pre-commit:
runs-on: ubuntu-latest
name: pre-commit
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.12
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: poetry-${{ hashFiles('poetry.lock') }}
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Lock dependencies
run: poetry lock --no-update
- name: Install dependencies
run: poetry install --with=dev --no-interaction
- name: Run black
run: poetry run black --check --diff $(git ls-files "*.py")
- name: Run pre-commit checks
run: poetry run pre-commit run -a