Skip to content

Commit

Permalink
Update docs-specific hooks and config as of 2024-01-29
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Jan 29, 2024
1 parent 9102273 commit c0de38d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[flake8]
count = True
ignore = E123, W504
max-doc-length = 79
max-complexity = 15
jobs = 1
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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'

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
3 changes: 0 additions & 3 deletions .rstcheck.cfg

This file was deleted.

0 comments on commit c0de38d

Please sign in to comment.