diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index a766f75..7390284 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -22,7 +22,7 @@ jobs: make html - name: Run Lighthouse against example docs build - uses: treosh/lighthouse-ci-action@v2 + uses: treosh/lighthouse-ci-action@v9 with: configPath: "./lighthouserc.json" temporaryPublicStorage: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 286f716..bc574e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,18 +1,18 @@ repos: - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 23.1.0 hooks: - id: black language_version: python3 exclude: versioneer.py args: - --target-version=py37 - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 + - repo: https://github.com/pycqa/flake8 + rev: 6.0.0 hooks: - id: flake8 language_version: python3 - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v2.6.2" + rev: v2.7.1 hooks: - id: prettier diff --git a/dask_sphinx_theme/ext/dask_config_sphinx_ext.py b/dask_sphinx_theme/ext/dask_config_sphinx_ext.py index ea54989..274f032 100644 --- a/dask_sphinx_theme/ext/dask_config_sphinx_ext.py +++ b/dask_sphinx_theme/ext/dask_config_sphinx_ext.py @@ -10,7 +10,6 @@ def get_remote_yaml(url): class DaskConfigDirective(Directive): - option_spec = { "location": directives.unchanged, "schema": directives.uri, @@ -64,7 +63,6 @@ def dask_config_to_html(key, value, schema, prefix=""): ) else: - try: description = schema["description"] description = description.strip() diff --git a/setup.cfg b/setup.cfg index 3a12a4c..779d138 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,9 +8,12 @@ extend-ignore = E203, E266, E501 # Note: there cannot be spaces after commas here exclude = __init__.py,versioneer.py ignore = - E4, # Import formatting - E731, # Assigning lambda expression - W503, # line break before binary operator + # Import formatting + E4, + # Assigning lambda expression + E731, + # line break before binary operator + W503, per-file-ignores = **/tests/*: