Distinguish _bytes_to_dict
and _bytes_to_list
+ fix issues
#4526
Workflow file for this run
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: Python quality | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "js/**" | |
- "api-inference-community/**" | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
paths-ignore: | |
- "js/**" | |
- "api-inference-community/**" | |
jobs: | |
check_code_quality: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install .[dev] | |
- run: black --check tests src contrib | |
- run: ruff tests src contrib | |
- run: python utils/check_contrib_list.py | |
- run: python utils/check_static_imports.py | |
- run: python utils/generate_async_inference_client.py | |
# Run type checking at least on huggingface_hub root file to check all modules | |
# that can be lazy-loaded actually exist. | |
- run: mypy src/huggingface_hub/__init__.py --follow-imports=silent --show-traceback | |
# Run mypy on full package | |
- run: mypy src |