Skip to content

Commit

Permalink
Install flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasgeiter committed Mar 10, 2024
1 parent 7d32a2e commit f12694c
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
extend-ignore = E203,E501,E731
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
run: poetry run black --check .
- name: Check import order
run: poetry run isort --check-only .
- name: Check code style
run: poetry run flake8 .
test:
name: Test
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The awesome-pages plugin allows you to customize how your pages show up the navi

## Installation

> **Note:** This package requires Python >=3.8 and MkDocs version 1.0 or higher.
> **Note:** This package requires Python >=3.8.1 and MkDocs version 1.0 or higher.
> If you're still on MkDocs 0.17 use [version 1 of this plugin][github-v1].
Install the package with pip:
Expand Down
2 changes: 1 addition & 1 deletion mkdocs_awesome_pages_plugin/tests/e2e/base.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import tempfile
import warnings
from typing import Dict, Iterable, List, Optional, Tuple, TypeVar, Union
from typing import Dict, List, Optional, Tuple, TypeVar, Union
from unittest import TestCase

import yaml
Expand Down
6 changes: 1 addition & 5 deletions mkdocs_awesome_pages_plugin/tests/navigation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
from mkdocs.structure.files import File, Files
from mkdocs.structure.nav import Link
from mkdocs.structure.nav import Navigation as MkDocsNavigation
from mkdocs.structure.nav import (
Section,
_add_parent_links,
_add_previous_and_next_links,
)
from mkdocs.structure.nav import Section
from mkdocs.structure.pages import Page

from ...meta import Meta
Expand Down
53 changes: 51 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exclude = ["mkdocs_awesome_pages_plugin/tests"]
awesome-pages = "mkdocs_awesome_pages_plugin.plugin:AwesomePagesPlugin"

[tool.poetry.dependencies]
python = ">=3.8"
python = ">=3.8.1"
mkdocs = ">=1"
wcmatch = ">=7"
natsort = ">=8.1.0"
Expand All @@ -29,6 +29,7 @@ beautifulsoup4 = "^4.12.3"
mock-open = "^1.4.0"
black = { extras = ["d"], version = "^24.2.0" }
isort = "^5.13.2"
flake8 = "^7.0.0"

[tool.black]
line-length = 120
Expand Down

0 comments on commit f12694c

Please sign in to comment.