Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved README #1303

Merged
merged 12 commits into from
Nov 25, 2024
27 changes: 27 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
# Default state for all rules
default: true

# MD003/heading-style/header-style - Heading style
MD003:
style: "atx"

# MD004/ul-style - Unordered list style
MD004:
style: "dash"

# MD007/ul-indent - Unordered list indentation
MD007:
indent: 4

# MD013/line-length - Line length
MD013:
code_blocks: false
tables: false
line_length: 120

# MD035/hr-style - Horizontal rule style
MD035:
style: "---"

MD033: false
63 changes: 35 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,59 @@
default_stages: [commit, push]
default_stages: [ commit, push ]
exclude: ^src/bin/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
args: [--maxkb=10000]
- id: check-added-large-files
args: [ --maxkb=10000 ]

- id: check-json
- id: check-json

- id: check-merge-conflict
- id: check-merge-conflict

- id: check-toml
- id: check-toml

- id: check-yaml
- id: check-yaml

- id: fix-encoding-pragma
args: [--remove]
- id: fix-encoding-pragma
args: [ --remove ]

- id: file-contents-sorter
- id: file-contents-sorter
files: src/unpacker/passwords|_list.txt

- id: forbid-new-submodules
- id: forbid-new-submodules

- id: no-commit-to-branch
- id: no-commit-to-branch

- id: pretty-format-json
args: [--autofix]
- id: pretty-format-json
args: [ --autofix ]
exclude: ^src/web_interface/static/package-lock.json

- repo: https://github.com/jumanjihouse/pre-commit-hooks
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
- id: shellcheck
- id: shellcheck

- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
- repo: https://github.com/pryorda/dockerfilelint-precommit-hooks
rev: v0.1.0
hooks:
- id: dockerfilelint
- id: dockerfilelint

- repo: https://github.com/pre-commit/mirrors-jshint
- repo: https://github.com/pre-commit/mirrors-jshint
rev: v2.13.0
hooks:
- id: jshint

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.2.2'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format
- id: jshint

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.2.2'
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- id: ruff-format

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
hooks:
- id: markdownlint
args: [ "--config", ".markdownlint.yaml" ]

Loading