Skip to content

Commit

Permalink
pre-commit: initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
schuellerf committed Jul 30, 2024
1 parent e0b8d03 commit 8ff91dd
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ cov-int/

/docs/osbuild.1
/docs/osbuild-manifest.5

dictionary.dic
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude: ".*\\.md$"
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
files: "Schutzfile|.*\\.json"
types: []
- id: check-added-large-files
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args: [--strict]
- repo: https://github.com/schuellerf/pre-commit-pyspelling
rev: 0.1.0
hooks:
- id: pyspelling
args: ["--config", ".spellcheck.yml"]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.0
hooks:
- id: autopep8
15 changes: 15 additions & 0 deletions .spellcheck-en-custom.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
DB's
discoverable
distros
GH
Github
Gitlab
JSON
osbuild
OSbuild
ppc
repo
rhel
Schutzbot
th
toolchain
28 changes: 28 additions & 0 deletions .spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: Apache-2.0

matrix:
- name: markdown
aspell:
lang: en
d: en_US
camel-case: true
mode: markdown
sources:
- "**/*.md|!venv/**"
dictionary:
wordlists:
- .spellcheck-en-custom.txt
pipeline:
- pyspelling.filters.context:
context_visible_first: true
escapes: '\\[\\`~]'
delimiters:
# Ignore multiline content between fences (fences can have 3 or more back ticks)
# ```language
# content
# ```
- open: '^(?P<open> *`{3,}).*$'
close: '^(?P=open)$'
# Ignore text between inline back ticks
- open: '(?P<open>`+)'
close: '(?P=open)'
7 changes: 7 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
extends: default

rules:
document-start: disable
line-length:
max: 120

0 comments on commit 8ff91dd

Please sign in to comment.