Skip to content

Commit

Permalink
Use poetry directly in lints
Browse files Browse the repository at this point in the history
  • Loading branch information
offbyone committed Oct 28, 2023
1 parent e2c15b5 commit 608a1e3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Expand Up @@ -62,16 +62,20 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
cache: "pip"
cache-dependency-path: "**/requirements/*"
- name: Install tox
run: python -m pip install -U pip tox
- name: Check
run: tox -e flake8
cache: "poetry"
cache-dependency-path: "pyproject.toml"
- name: Install dependencies
run: |
poetry env use "3.9"
poetry install --no-interaction
- name: Run linters
run: poetry run invoke lint --diff

docs:
name: Build docs
Expand Down
14 changes: 0 additions & 14 deletions tox.ini
Expand Up @@ -30,17 +30,3 @@ filterwarnings =
default::DeprecationWarning
error:.*:Warning:pelican
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

0 comments on commit 608a1e3

Please sign in to comment.