From 59b5683c9afc971396e6891764b8fe67b7cf5795 Mon Sep 17 00:00:00 2001 From: Ryan Snodgrass Date: Mon, 25 Nov 2024 12:14:27 -0800 Subject: [PATCH] update --- .envrc | 17 +++++++++++++++++ .pre-commit-config.yaml | 6 +++--- README.md | 3 +++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..4c6c1db --- /dev/null +++ b/.envrc @@ -0,0 +1,17 @@ +if [ which runonce &> /dev/null ]; then + DIR=`basename $(pwd)` + + # install any missing requirements + if [ -d .venv ]; then + if [ -f requirements.txt ]; then + runonce -b -n $DIR uv pip install -r requirements.txt + fi + + if [ -f requirements-dev.txt ]; then + runonce -b -n $DIR uv pip install -r requirements-dev.txt + fi + fi + + # auto-update pre-commit versions (if > 1 week) + runonce -b -n $DIR -d 7 pre-commit autoupdate +fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7c20d94..684b776 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ fail_fast: true repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -32,11 +32,11 @@ repos: args: [--settings-path=pyproject.toml] # ["--profile", "black" ] - repo: https://github.com/dosisod/refurb - rev: v1.27.0 + rev: v2.0.0 hooks: - id: refurb - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.19.0 hooks: - id: pyupgrade diff --git a/README.md b/README.md index 9c2d885..e7caaa1 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,9 @@ Pinouts as documented in the Xantech MX88 manual: | 5 | GND | 5 | Yellow | GND | Ground | | 6 | DTR | 6 | Red | DSR | | +This may be the Xantech Null Modem Cable PN 05913560. + + ## See Also * [Protocol Definitions - Xantech / Monoprice / Sonance (reusable in other projects)](pyxantech/protocols)