mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Use poetry directly in lints
This commit is contained in:
parent
6cf6a1ffe9
commit
29b10ef6e6
2 changed files with 10 additions and 20 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
|
@ -62,16 +62,20 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install Poetry
|
||||||
|
run: pipx install poetry
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "3.9"
|
python-version: "3.9"
|
||||||
cache: "pip"
|
cache: "poetry"
|
||||||
cache-dependency-path: "**/requirements/*"
|
cache-dependency-path: "pyproject.toml"
|
||||||
- name: Install tox
|
- name: Install dependencies
|
||||||
run: python -m pip install -U pip tox
|
run: |
|
||||||
- name: Check
|
poetry env use "3.9"
|
||||||
run: tox -e flake8
|
poetry install --no-interaction
|
||||||
|
- name: Run linters
|
||||||
|
run: poetry run invoke lint --diff
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Build docs
|
name: Build docs
|
||||||
|
|
|
||||||
14
tox.ini
14
tox.ini
|
|
@ -30,17 +30,3 @@ filterwarnings =
|
||||||
default::DeprecationWarning
|
default::DeprecationWarning
|
||||||
error:.*:Warning:pelican
|
error:.*:Warning:pelican
|
||||||
addopts = -n auto -r a
|
addopts = -n auto -r a
|
||||||
|
|
||||||
[flake8]
|
|
||||||
application-import-names = pelican
|
|
||||||
import-order-style = cryptography
|
|
||||||
max-line-length = 88
|
|
||||||
|
|
||||||
[testenv:flake8]
|
|
||||||
basepython = python3.9
|
|
||||||
skip_install = true
|
|
||||||
deps =
|
|
||||||
-rrequirements/style.pip
|
|
||||||
commands =
|
|
||||||
flake8 --version
|
|
||||||
flake8 pelican
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue