-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml.dist
81 lines (76 loc) · 2.9 KB
/
.pre-commit-config.yaml.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#
# Olza Logistic's Pickup Points API (server)
#
# @author Marcin Orlowski <marcin.orlowski (#) develart (.) cz>
# @copyright 2022-2024 DevelArt
# @license Proprietary
#
# See https://pre-commit.com for more information about pre-commit.
# See https://pre-commit.com/hooks.html for more available hooks.
#
##############################################################################
#
# Using pre-commit hooks #
#
# To improve quality of your commit, it's recommended to use "pre-commit" (http://pre-commit.com)
# hooks, that will block your commits unless all tests pass. This project comes with template
# configuration file `.pre-commit-config.yaml.dist`.
#
# Brief installation instruction:
#
# * Ensure you got Python installed
# * Install pre-commit: `pip install pre-commit`
# * Go to your Logisim-evolution source code root directory
# * Copy provided config file template: `cp .pre-commit-config.yaml.dist .pre-commit-config.yaml`
# * Plug hooks into Git pipeline: `pre-commit install`
#
# See `pre-commit` official installation docs too: https://pre-commit.com/#install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
# Prevent giant files from being committed
- id: check-added-large-files
args: [ '--maxkb=1555550' ]
# This hook checks yaml files for parseable syntax
- id: check-yaml
# Check for files that would conflict in case-insensitive filesystems
- id: check-case-conflict
# Ensures that (non-binary) executables have a shebang.
- id: check-executables-have-shebangs
# Check for files that contain merge conflict strings
- id: check-merge-conflict
# Prevent addition of new git submodules
- id: forbid-new-submodules
# Replaces or checks mixed line ending
- id: mixed-line-ending
args: [ '--fix=no' ]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 2.1.5
hooks:
# Non-executable shell script filename ends in .sh
- id: script-must-have-extension
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.2
hooks:
# Forbid files containing CRLF end-lines to be committed
- id: forbid-crlf
exclude_types: [ 'binary', 'xml', 'png', 'jpeg', 'pdf' ]
- repo: https://github.com/MarcinOrlowski/pre-commit-hooks
rev: 1.3.1
hooks:
# This hook trims trailing whitespace.
- id: trailing-whitespaces
exclude_types: [ 'binary', 'xml', 'png', 'jpeg', 'pdf' ]
args: [ '--markdown-linebreak-ext=md', '--fix=yes' ]
# Ensures that a file is either empty, or ends with one newline
- id: end-of-file
exclude_types: [ 'binary', 'xml', 'png', 'jpeg', 'pdf' ]
args: [ '--fix=yes' ]
- repo: https://github.com/digitalpulp/pre-commit-php.git
rev: 1.4.0
hooks:
# Runs PHPStan analyser
- id: php-stan
files: \.(php)$
args: [-c=phpstan.neon.dist]