From c0de38d0a577226e895b12bd35bee45e8b449158 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Mon, 29 Jan 2024 12:27:27 -0600 Subject: [PATCH] Update docs-specific hooks and config as of 2024-01-29 --- .flake8 | 2 ++ .pre-commit-config.yaml | 15 +++++++++------ .pylintrc | 6 +++--- .rstcheck.cfg | 3 --- 4 files changed, 14 insertions(+), 12 deletions(-) delete mode 100644 .rstcheck.cfg diff --git a/.flake8 b/.flake8 index 2a29a3f29..8a6ca4600 100644 --- a/.flake8 +++ b/.flake8 @@ -1,4 +1,6 @@ [flake8] +count = True ignore = E123, W504 max-doc-length = 79 max-complexity = 15 +jobs = 1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 21ba06a0d..b89bacf51 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,10 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks -# Hooks and config updated 2023-11-01 +# Baseline hooks and config updated 2023-11-01 +# Web hooks and config updated 2023-11-01 +# Docs hooks and config updated 2024-01-29 +# Python hooks and config updated 2024-01-29 minimum_pre_commit_version: '2.10.0' @@ -148,21 +151,21 @@ repos: # Check Python - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.5.0 hooks: - id: check-ast name: Check Python AST # Lint Python - repo: https://github.com/pycqa/flake8 - rev: '4.0.1' + rev: '7.0.0' hooks: - id: flake8 name: Lint Python with Flake8 exclude: '\bworkshops\b' - repo: https://github.com/pycqa/pylint - rev: v2.14.5 + rev: v3.0.3 hooks: - id: pylint name: Lint Python with Pylint @@ -179,7 +182,7 @@ repos: # Check RST - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 + rev: v1.10.0 hooks: - id: rst-backticks name: Check RST backticks @@ -190,7 +193,7 @@ repos: # Lint RST - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: v0.8.1 + rev: v0.9.1 hooks: - id: sphinx-lint name: Lint RST diff --git a/.pylintrc b/.pylintrc index 17e8e682e..761737196 100644 --- a/.pylintrc +++ b/.pylintrc @@ -49,14 +49,14 @@ load-plugins = pylint.extensions.bad_builtin, pylint.extensions.broad_try_clause, pylint.extensions.check_elif, pylint.extensions.code_style, - pylint.extensions.comparetozero, pylint.extensions.comparison_placement, pylint.extensions.confusing_elif, pylint.extensions.consider_ternary_expression, + pylint.extensions.dict_init_mutate, pylint.extensions.docparams, pylint.extensions.docstyle, + pylint.extensions.dunder, pylint.extensions.empty_comment, - pylint.extensions.emptystring, pylint.extensions.for_any_all, pylint.extensions.no_self_use, pylint.extensions.overlapping_exceptions, @@ -547,4 +547,4 @@ preferred-modules = # Exceptions that will emit a warning when being caught. Defaults to # "BaseException, Exception". -overgeneral-exceptions = BaseException, +overgeneral-exceptions = builtins.BaseException, diff --git a/.rstcheck.cfg b/.rstcheck.cfg deleted file mode 100644 index ff5b9d3c9..000000000 --- a/.rstcheck.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[rstcheck] -ignore_directives = dropdown,panels,rst-class,youtube -ignore_messages = (Hyperlink target ".+" is not referenced\.$)