Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:
types: [yaml]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 1a1f58ba4c35362efe8fed2279715a905baee93d # frozen: v0.14.8
rev: d96cc7adddf7d15b77f99dbd5d20e037dfd1b29c # frozen: v0.14.9
hooks:
- id: ruff
files: ^(scripts|tests|custom_components)/.+\.py$
Expand All @@ -62,7 +62,7 @@ repos:
files: ^(scripts|tests|custom_components)/.+\.py$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: c2738302f5cf2bfb559c1f210950badb133613ea # frozen: v1.19.0
rev: a66e98df7b4aeeb3724184b332785976d062b92e # frozen: v1.19.1
hooks:
- id: mypy

Expand All @@ -78,7 +78,7 @@ repos:
- id: shellcheck

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: c8fd5003603dd6f12447314ecd935ba87c09aff5 # frozen: v0.46.0
rev: 76b3d32d3f4b965e1d6425253c59407420ae2c43 # frozen: v0.47.0
hooks:
- id: markdownlint
args: ["--fix"]
Expand All @@ -103,7 +103,7 @@ repos:
args: ["--ignore-words=.codespell"]

- repo: https://github.com/python-jsonschema/check-jsonschema.git
rev: 16a6ad2fead09286ee6eb6b0a3fab55655a6c22a # frozen: 0.35.0
rev: b035497fb64e3f9faa91e833331688cc185891e6 # frozen: 0.36.0
hooks:
- id: check-github-actions
- id: check-github-workflows
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ steps:
<!-- markdownlint-disable MD013 -->

| Name | Required | Default | Description |
|------------------|----------|----------|-------------------------------------------------------------|
| ---------------- | -------- | -------- | ----------------------------------------------------------- |
| path | false | "." | Path to search for project files or path to a specific file |
| config | false | "" | Path to custom configuration file |
| format | false | "text" | Output format (text or json) |
Expand All @@ -76,7 +76,7 @@ steps:
<!-- markdownlint-disable MD013 -->

| Name | Description |
|----------------|----------------------------------------------|
| -------------- | -------------------------------------------- |
| version | Extracted version string |
| project-type | Detected project type |
| file | File containing the extracted version |
Expand All @@ -91,7 +91,7 @@ steps:
<!-- markdownlint-disable MD013 -->

| Flag | Short | Default | Description |
|--------------------|-------|----------|-------------------------------------------------------------|
| ------------------ | ----- | -------- | ----------------------------------------------------------- |
| --path | -p | "." | Path to search for project files or path to a specific file |
| --config | -c | "" | Path to configuration file |
| --format | -f | "text" | Output format: text, json |
Expand Down
3 changes: 2 additions & 1 deletion docs/REGEX_ESCAPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ pattern: `version[\\s\\S]+?end` // WRONG!

### Why This Is Wrong

The double-backslash version (`[\\s\\S]`) contains **4 backslashes** in the raw string:
The double-backslash version (`[\\s\\S]`) contains **4 backslashes** in the raw
string:

- Characters: `[`, `\`, `\`, `s`, `\`, `\`, `S`, `]`
- This is NOT what YAML gives us
Expand Down
Loading