Skip to content

Commit

Permalink
chore: add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
Meysam Azad committed Feb 13, 2024
1 parent d4c41bd commit 3147a55
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--maxkb=600"]
- id: check-ast
- id: check-executables-have-shebangs
- id: check-json
- id: check-shebang-scripts-are-executable
exclude: .*templates/.*j2$
- id: check-yaml
args:
- --allow-multiple-documents
exclude: mkdocs.yml
- id: detect-private-key
- id: detect-aws-credentials
- id: end-of-file-fixer
- id: name-tests-test
- id: file-contents-sorter
- id: requirements-txt-fixer
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.11.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ remote_branch: gh-pages
remote_name: origin
repo_name: developer-friendly/blog
repo_url: https://github.com/developer-friendly/blog
site_url: https://tech.developer-friendly.com
site_author: Meysam <[email protected]>
site_description: This repo holds the technical-ish blog of Developer Friendly.
# site_dir: mkdocs
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cairosvg<3
mkdocs-exclude<2
mkdocs-material<10
mkdocs-glightbox<1
mkdocs-material<10
mkdocs-rss-plugin<2
pillow==9.5

0 comments on commit 3147a55

Please sign in to comment.