diff --git a/.gitignore b/.gitignore index 755211a..5d717ee 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,4 @@ __pycache__ *.egg-info/ # ipynb -.ipynb_checkpoints/ \ No newline at end of file +.ipynb_checkpoints/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc41a94..4af1d58 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ exclude: 'site/.*' repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -16,12 +16,12 @@ repos: - id: check-toml - id: debug-statements - repo: https://github.com/asottile/add-trailing-comma - rev: v3.1.0 + rev: v3.2.0 hooks: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.2 + rev: v0.13.2 hooks: # Run the linter. - id: ruff @@ -31,7 +31,7 @@ repos: types_or: [python, pyi] # options: ignore one line things [E701] - repo: https://github.com/adrienverge/yamllint - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint name: yamllint @@ -39,14 +39,12 @@ repos: entry: yamllint language: python types: [file, yaml] - args: ['-d', "{\ - extends: default,\ - rules: {\ - colons: { max-spaces-after: -1 }\ - }\ - }"] + args: [ + '-d', + "{ extends: default, rules: { colons: { max-spaces-after: -1 } } }", + ] - repo: https://github.com/rhysd/actionlint - rev: v1.7.4 + rev: v1.7.7 hooks: - id: actionlint name: Lint GitHub Actions workflow files @@ -67,18 +65,9 @@ repos: args: [--staged, --msg-filename] stages: [commit-msg] - repo: https://github.com/crate-ci/typos - rev: v1.28.2 + rev: v1 hooks: - id: typos - - repo: https://github.com/markdownlint/markdownlint - rev: v0.13.0 - hooks: - - id: markdownlint - name: Markdownlint - description: Run markdownlint on your Markdown files - entry: mdl --style .markdown.rb - language: ruby - files: \.(md|mdown|markdown)$ - repo: https://github.com/Yelp/detect-secrets rev: v1.5.0 hooks: @@ -87,3 +76,15 @@ repos: language: python entry: detect-secrets-hook args: [''] + - repo: https://github.com/rvben/rumdl-pre-commit + rev: v0.0.151 # Use the latest release tag + hooks: + - id: rumdl + # To only check (default): + # args: [] + # To automatically fix issues: + # args: [--fix] + - repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.405 # pin a tag; latest as of 2025-10-01 + hooks: + - id: pyright diff --git a/TECH_NOTE.md b/TECH_NOTE.md index 940cc8c..51bc2bf 100644 --- a/TECH_NOTE.md +++ b/TECH_NOTE.md @@ -14,12 +14,13 @@ In simple usage, usually only the root logger has a handler. * Changing the format mid-program means finding all the (relevant?) handlers in the tree. `pytest` for example attaches other handlers so it can capture -logging. Our `better_config()` will set our format on the root logger's handlers. +logging. Our `better_config()` will set our format on the root logger's +handlers. * You cannot attach two formatters to a handler * Two handlers cannot access the same file Having both those be true simultaneously presents problems. -For our process logger, where a lot of context is erronenous, +For our process logger, where a lot of context is erroneous, we strip useless data from the process logger by using a filter.