Skip to content

Commit 67d349e

Browse files
chore: added settings
1 parent d960f40 commit 67d349e

5 files changed

+155
-37
lines changed

.DS_Store

-6 KB
Binary file not shown.

.gitignore

+53-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,56 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/macos,direnv,visualstudiocode
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=macos,direnv,visualstudiocode
4+
5+
### direnv ###
6+
.direnv
7+
.envrc
8+
9+
### macOS ###
10+
# General
11+
.DS_Store
12+
.AppleDouble
13+
.LSOverride
14+
15+
# Icon must end with two \r
16+
Icon
17+
18+
19+
# Thumbnails
20+
._*
21+
22+
# Files that might appear in the root of a volume
23+
.DocumentRevisions-V100
24+
.fseventsd
25+
.Spotlight-V100
26+
.TemporaryItems
27+
.Trashes
28+
.VolumeIcon.icns
29+
.com.apple.timemachine.donotpresent
30+
31+
# Directories potentially created on remote AFP share
32+
.AppleDB
33+
.AppleDesktop
34+
Network Trash Folder
35+
Temporary Items
36+
.apdisk
37+
38+
### VisualStudioCode ###
39+
.vscode/*
40+
!.vscode/settings.json
41+
!.vscode/tasks.json
42+
!.vscode/launch.json
43+
!.vscode/extensions.json
44+
*.code-workspace
45+
46+
### VisualStudioCode Patch ###
47+
# Ignore all local history of files
48+
.history
49+
.ionide
50+
51+
# End of https://www.toptal.com/developers/gitignore/api/macos,direnv,visualstudiocode
52+
153
sandbox
2-
do-not-commit
354
spam/
4-
555
coolstuff
6-
do-not-commit
56+
do-not-commit

.pre-commit-config.yaml

+86-33
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,87 @@
1+
---
12
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.4.0
4-
hooks:
5-
- id: check-added-large-files
6-
args: ['--maxkb=5000']
7-
- id: check-executables-have-shebangs
8-
- id: pretty-format-json
9-
args: ['--autofix', '--no-sort-keys', '--indent=2']
10-
- id: check-case-conflict
11-
- id: check-executables-have-shebangs
12-
- id: check-merge-conflict
13-
- id: check-symlinks
14-
- id: detect-private-key
15-
- id: debug-statements
16-
- id: check-json
17-
- id: detect-aws-credentials
18-
args: ['--allow-missing-credentials']
19-
- repo: git://github.com/smian/pre-commit-makefile
20-
rev: 261f8fb4b31dfdc05d1a1d7fbde1f1462ecde66d
21-
hooks:
22-
- id: makefile-doc
23-
- repo: meta
24-
hooks:
25-
- id: check-useless-excludes
26-
- repo: https://github.com/gruntwork-io/pre-commit
27-
rev: v0.1.12
28-
hooks:
29-
- id: shellcheck
30-
- repo: [email protected]:Yelp/detect-secrets
31-
rev: v1.0.3
32-
hooks:
33-
- id: detect-secrets
34-
args: ['--baseline', '.secrets.baseline']
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.0.1
5+
hooks:
6+
- id: check-added-large-files
7+
args: ['--maxkb=700']
8+
- id: check-ast
9+
- id: check-builtin-literals
10+
- id: check-case-conflict
11+
- id: check-docstring-first
12+
- id: check-executables-have-shebangs
13+
- id: check-json
14+
- id: check-merge-conflict
15+
- id: check-symlinks
16+
- id: check-toml
17+
- id: check-vcs-permalinks
18+
- id: check-xml
19+
- id: check-yaml
20+
- id: debug-statements
21+
- id: destroyed-symlinks
22+
- id: detect-aws-credentials
23+
args: ['--allow-missing-credentials']
24+
- id: detect-private-key
25+
- id: double-quote-string-fixer
26+
- id: end-of-file-fixer
27+
- id: fix-byte-order-marker
28+
- id: fix-encoding-pragma
29+
- id: mixed-line-ending
30+
args: ['--fix=lf']
31+
description: Forces to replace line ending by the UNIX 'lf' character.
32+
- id: pretty-format-json
33+
args: ['--autofix', '--indent=2']
34+
- id: requirements-txt-fixer
35+
- id: sort-simple-yaml
36+
- id: trailing-whitespace
37+
- repo: git://github.com/johncblandii/pre-commit-makefile
38+
rev: v0.2.0
39+
hooks:
40+
- id: makefile-doc
41+
- repo: meta
42+
hooks:
43+
- id: check-useless-excludes
44+
- repo: https://github.com/gruntwork-io/pre-commit
45+
# Get the latest from: https://github.com/gruntwork-io/pre-commit/releases
46+
rev: v0.1.12
47+
hooks:
48+
- id: shellcheck
49+
- repo: https://github.com/asottile/reorder_python_imports
50+
rev: v2.5.0
51+
hooks:
52+
- id: reorder-python-imports
53+
language_version: python3
54+
- repo: [email protected]:Yelp/detect-secrets
55+
rev: v1.1.0
56+
hooks:
57+
- id: detect-secrets
58+
args: ['--baseline', '.secrets.baseline']
59+
exclude: .pre-commit-config.yaml
60+
- repo: https://github.com/markdownlint/markdownlint
61+
rev: v0.11.0
62+
hooks:
63+
- id: markdownlint
64+
name: Markdownlint
65+
description: Run markdownlint on your Markdown files
66+
entry: mdl
67+
language: ruby
68+
files: \.(md|mdown|markdown)$
69+
- repo: https://github.com/adrienverge/yamllint.git
70+
rev: v1.26.1
71+
hooks:
72+
- id: yamllint
73+
files: \.(yaml|yml)$
74+
types: [file, yaml]
75+
entry: 'yamllint --strict'
76+
- repo: https://github.com/thlorenz/doctoc
77+
rev: v2.0.0
78+
hooks:
79+
- id: doctoc
80+
args: ['--title=**Table of Contents**']
81+
descripiton: 'Generates table of contents for markdown files'
82+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
83+
rev: v5.0.0
84+
hooks:
85+
- id: commitlint
86+
stages: [commit-msg]
87+
additional_dependencies: ["@commitlint/config-conventional"]

.secrets.baseline

+10-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
}
4444
]
4545
},
46-
"version": "1.0.3",
46+
"version": "1.1.0",
4747
"filters_used": [
4848
{
4949
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
@@ -69,6 +69,15 @@
6969
{
7070
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
7171
"min_level": 2
72+
},
73+
{
74+
"path": "detect_secrets.filters.heuristic.is_lock_file"
75+
},
76+
{
77+
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
78+
},
79+
{
80+
"path": "detect_secrets.filters.heuristic.is_swagger_file"
7281
}
7382
]
7483
}

.yamllint

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
extends: relaxed
3+
rules:
4+
line-length:
5+
max: 256
6+
level: warning

0 commit comments

Comments
 (0)