Skip to content

Commit

Permalink
test: add pre-commit test for general mdformat CLI arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Nov 22, 2023
1 parent 1534960 commit 6ddd6ee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ repos:
files: tests/pre-commit-test.md
types: [markdown]
language: system
- id: mdformat-with-args
name: mdformat-with-args
entry: mdformat
args: [--wrap=40, --number]
files: tests/pre-commit-test-numbered.md
types: [markdown]
language: system
- id: mdformat-with-semantic-arg
name: mdformat-with-semantic-arg
entry: mdformat
Expand Down
11 changes: 11 additions & 0 deletions tests/pre-commit-test-numbered.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Numbered Lists

1. A repository with dependencies and
artifacts is **growing very fast**.
2\. Indented list item 1 2. Indented
list item 2
2. If you store artifacts in the
repository, you need to remember to
compile the application before
every commit.
3. Compiled application.

0 comments on commit 6ddd6ee

Please sign in to comment.