Skip to content

Commit

Permalink
Base repo configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbpirie committed Apr 15, 2021
1 parent f46b7b9 commit 62e3dae
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file guarantees that every text file is normalized to LF line endings
# in the repo, and will be converted to platform native line endings on checkout.
* text=auto
autopkg text
*.yaml text
*.txt text
*.sh text
*.py text
*.plist text
*.md text
*.json text
*.cfg text
.gitignore text
.gitattributes text
.flake8 text
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# .DS_Store files!
.DS_Store

# don't track .pyc files or autopkgc
*.pyc
autopkgc

# IDE-specific files
.vscode
41 changes: 41 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.10.1
hooks:
- id: check-autopkg-recipes
args:
[
"--recipe-prefix=com.github.davidbpirie.",
"--ignore-min-vers-before=0.1.0",
"--strict",
"--",
]
exclude: ^Docker\/|^Quicksilver\/Quicksilver\.pkg\.recipe$
- id: forbid-autopkg-overrides
- id: forbid-autopkg-trust-info
- repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
args: ["--maxkb=100"]
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: fix-encoding-pragma
- id: mixed-line-ending
- id: no-commit-to-branch
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- repo: https://github.com/pycqa/flake8
rev: 3.9.0
hooks:
- id: flake8

0 comments on commit 62e3dae

Please sign in to comment.