Skip to content

Commit

Permalink
Tries using python 3.10 when running black
Browse files Browse the repository at this point in the history
  • Loading branch information
maccinza committed Dec 21, 2021
1 parent af45c8a commit 5ebf070
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/python_linters.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Lint

on:
workflow_call:
inputs:
python_version:
required: false
type: string
default: '3.9'
on: workflow_call

jobs:
run-linters:
Expand All @@ -20,7 +14,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ inputs.python_version }}
python-version: '3.x'
architecture: 'x64'

- name: Install Python Dependencies
Expand All @@ -30,7 +24,7 @@ jobs:
uses: wearerequired/lint-action@v1
with:
black: true
black_args: "--exclude='.*_pb2.py'"
black_args: "--exclude='.*_pb2.py' --target-version=py310"
flake8: true
flake8_args: "--max-line-length=88 --select=C,E,F,W,B,B950 --extend-ignore=E203,E501 --max-complexity=18 --exclude='*_pb2.py'"
auto_fix: true
Expand Down

0 comments on commit 5ebf070

Please sign in to comment.