Skip to content

Commit

Permalink
moved linting check in a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Jan 18, 2024
1 parent 2840db4 commit 31f83fb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ jobs:
poetry-version: 1.3.2
- name: Install dependencies
run: poetry install -E crypto
- name: Lint with flake8
run: poetry run flake8
- name: Generate rest sync code and tests
run: poetry run unasync
- name: Test with pytest
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Linting check

on:
pull_request:
push:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Setup poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.3.2
- name: Install dependencies
run: poetry install -E crypto
- name: Lint with flake8
run: poetry run flake8
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ mock = "^4.0.3"
pep8-naming = "^0.4.1"
pytest-cov = "^2.4"
flake8=[
{ version = "3.9.2", python = ">=3.7, <3.12" },
{ version = "7.0.0", python = "3.12" }
{ version = "3.9.2", python = "~3.7" },
{ version = "7.0.0", python = "^3.8" }
]
pytest-xdist = "^1.15"
respx = "^0.20.0"
Expand Down

0 comments on commit 31f83fb

Please sign in to comment.