Skip to content

Commit

Permalink
Update black
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasgeiter committed Mar 15, 2023
1 parent 3fd1d70 commit a975db8
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 45 deletions.
3 changes: 0 additions & 3 deletions mkdocs_awesome_pages_plugin/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class RestType(Enum):


class MetaNavRestItem(MetaNavItem):

_REGEX = r"^\.{3}\s*(?:\|\s*(flat)\s*)?\s*(?:\|\s*(?:(regex|glob)=)?(.*))?"

def __init__(self, value: str):
Expand Down Expand Up @@ -101,7 +100,6 @@ def __len__(self):


class Meta:

TITLE_ATTRIBUTE = "title"
NAV_ATTRIBUTE = "nav"
ARRANGE_ATTRIBUTE = "arrange"
Expand Down Expand Up @@ -129,7 +127,6 @@ def __init__(
order: Optional[str] = None,
sort_type: Optional[str] = None,
):

if nav is None and arrange is not None:
nav = [MetaNavItem.from_yaml(value, path) for value in arrange]
if MetaNavRestItem("...") not in nav:
Expand Down
1 change: 0 additions & 1 deletion mkdocs_awesome_pages_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def __init__(self, plugin_name: str):


class AwesomePagesPlugin(BasePlugin):

DEFAULT_META_FILENAME = ".pages"
REST_PLACEHOLDER = "AWESOME_PAGES_REST"

Expand Down
2 changes: 0 additions & 2 deletions mkdocs_awesome_pages_plugin/tests/e2e/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def pagesFile(
order: Optional[str] = None,
sort_type: Optional[str] = None,
) -> Tuple[str, str]:

data = self._removeDictNoneValues(
{
"title": title,
Expand All @@ -55,7 +54,6 @@ def createConfig(
mkdocs_nav: Optional[List[Union[str, Dict[str, Union[str, list]]]]] = None,
strict: Optional[bool] = None,
) -> dict:

plugin_options = self._removeDictNoneValues(
{
"filename": filename,
Expand Down
1 change: 0 additions & 1 deletion mkdocs_awesome_pages_plugin/tests/e2e/test_arrange.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class TestArrange(E2ETestCase):

pages123 = ["1.md", "2.md", "3.md"]

def test(self):
Expand Down
2 changes: 0 additions & 2 deletions mkdocs_awesome_pages_plugin/tests/navigation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def section(
def createAwesomeNavigation(
self, items: List[NavigationItem], *, collapse_single_pages: bool = False, strict: bool = True
) -> AwesomeNavigation:

children = []
meta = None
for item in items:
Expand Down Expand Up @@ -99,7 +98,6 @@ def assertNavigationEqual(self, actual: List[NavigationItem], expected: List[Nav
def assertValidNavigation(
self, navigation: MkDocsNavigation, *, assert_previous_next: bool = True, assert_parent: bool = True
):

pages = get_by_type(navigation, Page)

if assert_previous_next:
Expand Down
72 changes: 37 additions & 35 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ natsort = ">=8.1.0"
pytest = "^6.2.5"
beautifulsoup4 = "^4.10.0"
mock-open = "^1.4.0"
black = { extras = ["d"], version = "^21.12b0" }
black = { extras = ["d"], version = "^23.1.0" }

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

0 comments on commit a975db8

Please sign in to comment.