Skip to content

Commit fc08d96

Browse files
schuellerfochosi
authored andcommitted
pre-commit: initial commit
1 parent 296c393 commit fc08d96

8 files changed

+77
-1
lines changed

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install prerequisites
1616
run: |
1717
pip install pre-commit
18-
apt install aspell
18+
sudo apt install aspell
1919
shell: bash
2020
- name: Run linters
2121
run: make lint

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
slack_nicks.yaml
2+
dictionary.dic

.pre-commit-config.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.6.0
6+
hooks:
7+
- id: trailing-whitespace
8+
args:
9+
- --markdown-linebreak-ext=md
10+
- id: end-of-file-fixer
11+
- id: check-added-large-files
12+
- repo: https://github.com/adrienverge/yamllint
13+
rev: v1.35.1
14+
hooks:
15+
- id: yamllint
16+
args: [--strict]
17+
- repo: https://github.com/schuellerf/pre-commit-pyspelling
18+
rev: 0.1.0
19+
hooks:
20+
- id: pyspelling
21+
args: ["--config", ".spellcheck.yml"]
22+
- repo: https://github.com/pre-commit/mirrors-mypy
23+
rev: 'v1.11.1'
24+
hooks:
25+
- id: mypy
26+
additional_dependencies: ["types-PyYAML", "types-requests"]
27+
- repo: https://github.com/hhatto/autopep8
28+
rev: v2.3.0
29+
hooks:
30+
- id: autopep8
31+
- repo: https://github.com/pycqa/pylint
32+
rev: v3.2.6
33+
hooks:
34+
- id: pylint
35+
additional_dependencies: ["pyyaml", "cryptography", "docopt", "requests", "ghapi", "slack-sdk"]

.pylintrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[FORMAT]
2+
max-line-length=120

.spellcheck-en-custom.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
decrypted

.spellcheck.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
matrix:
4+
- name: markdown
5+
aspell:
6+
lang: en
7+
d: en_US
8+
camel-case: true
9+
mode: markdown
10+
sources:
11+
- "**/*.md|!venv*/**"
12+
dictionary:
13+
wordlists:
14+
- .spellcheck-en-custom.txt
15+
pipeline:
16+
- pyspelling.filters.context:
17+
context_visible_first: true
18+
escapes: '\\[\\`~]'
19+
delimiters:
20+
# Ignore multiline content between fences (fences can have 3 or more back ticks)
21+
# ```language
22+
# content
23+
# ```
24+
- open: '^(?P<open> *`{3,}).*$'
25+
close: '^(?P=open)$'
26+
# Ignore text between inline back ticks
27+
- open: '(?P<open>`+)'
28+
close: '(?P=open)'

.yamllint

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
extends: default
3+
4+
rules:
5+
document-start: disable
6+
line-length:
7+
max: 120

setup.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pep8]
2+
max-line-length = 120

0 commit comments

Comments
 (0)