1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-27 05:24:34 +01:00

Merge pull request #354 from nifadyev/feature/#347/configure-markdown-linter-and-formatter

#347: Add markdownlint-cli2 as Github Action and pre-commit hook
This commit is contained in:
Satwik Kansal 2024-11-05 15:38:43 +05:30 committed by GitHub
commit 15429d083b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 496 additions and 308 deletions

17
.github/workflows/pr.yml vendored Normal file
View File

@ -0,0 +1,17 @@
on: [pull_request]
permissions:
contents: read
pull-requests: read
checks: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DavidAnson/markdownlint-cli2-action@v17

15
.markdownlint.yaml vendored Normal file
View File

@ -0,0 +1,15 @@
# MD013/line-length
MD013:
line_length: 120
# no-duplicate-heading - Multiple headings with the same content (Ignore multiple `Explanation` headings)
MD024: false
# no-trailing-punctuation - Trailing punctuation in heading (Ignore exclamation marks in headings)
MD026: false
# no-inline-html : Inline HTML (HTML is used for centered and theme specific images)
MD033: false
# no-inline-html : Bare URL used (site should be attributed transparently, because otherwise we have to un-necesarily explain where the link directs)
MD034: false

7
.pre-commit-config.yaml vendored Normal file
View File

@ -0,0 +1,7 @@
default_language_version:
python: python3.12
repos:
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.14.0
hooks:
- id: markdownlint-cli2

765
README.md vendored

File diff suppressed because it is too large Load Diff