Add return type Document for parse_file() #706
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
# SPDX-FileCopyrightText: 2023 spdx contributors | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Run Linter | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check_code_style: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] | |
exclude: # see https://github.com/actions/runner-images/issues/9770#issuecomment-2085623315 | |
- python-version: "3.7" | |
os: macos-latest | |
include: | |
- python-version: "3.7" | |
os: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Installation | |
run: pip install ".[code_style]" | |
- name: Check code with isort | |
run: | | |
isort src tests --check | |
black src tests --check | |
flake8 src tests |