Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved linting check in a separate file
Browse files Browse the repository at this point in the history
sacOO7 committed Jan 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2840db4 commit e0777af
Showing 3 changed files with 27 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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/actions-poetry@v2.0.0
with:
poetry-version: 1.3.2
- 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
@@ -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"

0 comments on commit e0777af

Please sign in to comment.