Skip to content

Fix UnicodeDecodeError when guessed charset doesn't hold for the whole file #1704

Fix UnicodeDecodeError when guessed charset doesn't hold for the whole file

Fix UnicodeDecodeError when guessed charset doesn't hold for the whole file #1704

Workflow file for this run

name: pre-commit
on: [pull_request]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.x"
- name: Install pre-commit
run: |
pip install pre-commit
pre-commit install --install-hooks
- name: Run pre-commit
run: pre-commit run --all-files