Skip to content

Refactoring batch_format_link_properties to Utilize Optional Return Type for in-place Mutation #40

Refactoring batch_format_link_properties to Utilize Optional Return Type for in-place Mutation

Refactoring batch_format_link_properties to Utilize Optional Return Type for in-place Mutation #40

Workflow file for this run

name: Code format and linting
on: [pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Checking code format with autopep8
run: autopep8 --diff --exit-code $(git ls-files '*.py')
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Analysing the code with flake8
run: flake8 $(git ls-files '*.py')