Skip to content

Commit

Permalink
Chore dependency upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin committed Oct 16, 2022
1 parent 9779fc2 commit f9f8c5f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
runs-on: ${{matrix.os}}
steps:
- name: Download source
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{matrix.python}}
- name: Pin to lowest versions
Expand All @@ -51,9 +51,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Hatch
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install --no-deps -r docs/requirements.txt
- name: Build site
Expand Down
2 changes: 0 additions & 2 deletions mkdocs_section_index/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import collections
import logging

import mkdocs.utils
from jinja2 import Environment
from mkdocs.plugins import BasePlugin
from mkdocs.structure.nav import Navigation, Section
Expand All @@ -14,7 +13,6 @@
__all__ = ["SectionIndexPlugin"]

log = logging.getLogger(f"mkdocs.plugins.{__name__}")
log.addFilter(mkdocs.utils.warning_filter)


class SectionIndexPlugin(BasePlugin):
Expand Down
2 changes: 0 additions & 2 deletions mkdocs_section_index/rewrites.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
import textwrap
from typing import Callable

import mkdocs.utils
from jinja2 import BaseLoader, Environment

__all__ = ["TemplateRewritingLoader"]


log = logging.getLogger(f"mkdocs.plugins.{__name__}")
log.addFilter(mkdocs.utils.warning_filter)


class TemplateRewritingLoader(BaseLoader):
Expand Down
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ dependencies = [
[tool.hatch.envs.style.scripts]
format = [
"find mkdocs_section_index tests -name '*.py' | xargs pyupgrade --exit-zero-even-if-changed --py37-plus",
"autoflake -i -r --remove-all-unused-imports --remove-unused-variables mkdocs_section_index tests",
"autoflake -r mkdocs_section_index tests",
"isort -q mkdocs_section_index tests",
"black -q mkdocs_section_index tests",
]
Expand All @@ -110,6 +110,12 @@ line-length = 100
profile = "black"
line_length = 100

[tool.autoflake]
in-place = true
remove-all-unused-imports = true
remove-unused-variables = true
expand-star-imports = true

[tool.mypy]
ignore_missing_imports = true
warn_unreachable = true
Expand Down

0 comments on commit f9f8c5f

Please sign in to comment.