Skip to content

Commit 31f83fb

Browse files
committed
moved linting check in a separate file
1 parent 2840db4 commit 31f83fb

3 files changed

Lines changed: 29 additions & 4 deletions

File tree

.github/workflows/check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ jobs:
3232
poetry-version: 1.3.2
3333
- name: Install dependencies
3434
run: poetry install -E crypto
35-
- name: Lint with flake8
36-
run: poetry run flake8
3735
- name: Generate rest sync code and tests
3836
run: poetry run unasync
3937
- name: Test with pytest

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Linting check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
submodules: 'recursive'
16+
- name: Set up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: '3.8'
20+
- name: Setup poetry
21+
uses: abatilo/actions-poetry@v2.0.0
22+
with:
23+
poetry-version: 1.3.2
24+
- name: Install dependencies
25+
run: poetry install -E crypto
26+
- name: Lint with flake8
27+
run: poetry run flake8

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ mock = "^4.0.3"
5353
pep8-naming = "^0.4.1"
5454
pytest-cov = "^2.4"
5555
flake8=[
56-
{ version = "3.9.2", python = ">=3.7, <3.12" },
57-
{ version = "7.0.0", python = "3.12" }
56+
{ version = "3.9.2", python = "~3.7" },
57+
{ version = "7.0.0", python = "^3.8" }
5858
]
5959
pytest-xdist = "^1.15"
6060
respx = "^0.20.0"

0 commit comments

Comments
 (0)