Skip to content

Commit

Permalink
Merge pull request #12 from MinBZK/feature/add-pre-commit
Browse files Browse the repository at this point in the history
Add pre-commit config and .gitignore
  • Loading branch information
robbertbos authored Feb 16, 2024
2 parents 4eceed4 + ee05ade commit d85f7ad
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
venv
.venv
build
site
13 changes: 13 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
default: true

# MkDocs needs another indentation
MD007:
indent: 4

MD013:
line_length: 120
tables: false
code_blocks: false

# MkDocs needs different code block styles
MD046: false
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: no-commit-to-branch
- id: requirements-txt-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
4 changes: 2 additions & 2 deletions docs/ADRs/0001-adrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ of the software system.
We will utilize ADRs in our team to document and communicate architectural decisions effectively. Furthermore, we
will publish these ADRs publicly to promote transparency and facilitate collaboration.


## Template

Use the template below to add an ADR:

```yaml
Expand All @@ -40,4 +40,4 @@ Use the template below to add an ADR:
- 0001-first
- 0002-second
---
```
```
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements.txt
pre-commit~=3.6
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Jinja2>=2.11.1
mkdocs==1.5.3
mkdocs-git-revision-date-localized-plugin==1.2.2
mkdocs-glightbox==0.3.6
mkdocs-material==9.5.4
mkdocs-material-adr==1.1.0
mkdocs-material-extensions==1.3.1
mkdocs-material==9.5.4
mkdocs==1.5.3
pymdown-extensions==10.7

0 comments on commit d85f7ad

Please sign in to comment.