diff --git a/.gitignore b/.gitignore index 0c2e082..1184144 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ slack_nicks.yaml +dictionary.dic diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..f67d08c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,35 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: trailing-whitespace + args: + - --markdown-linebreak-ext=md + - id: end-of-file-fixer + - id: check-added-large-files + - repo: https://github.com/adrienverge/yamllint + rev: v1.35.1 + hooks: + - id: yamllint + args: [--strict] + - repo: https://github.com/schuellerf/pre-commit-pyspelling + rev: 0.1.0 + hooks: + - id: pyspelling + args: ["--config", ".spellcheck.yml"] + - repo: https://github.com/pre-commit/mirrors-mypy + rev: 'v1.11.1' + hooks: + - id: mypy + additional_dependencies: ["types-PyYAML", "types-requests"] + - repo: https://github.com/hhatto/autopep8 + rev: v2.3.0 + hooks: + - id: autopep8 + - repo: https://github.com/pycqa/pylint + rev: v3.2.6 + hooks: + - id: pylint + additional_dependencies: ["pyyaml", "cryptography", "docopt", "requests", "ghapi", "slack-sdk"] diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..7615b86 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,2 @@ +[FORMAT] +max-line-length=120 diff --git a/.spellcheck-en-custom.txt b/.spellcheck-en-custom.txt new file mode 100644 index 0000000..eb9237c --- /dev/null +++ b/.spellcheck-en-custom.txt @@ -0,0 +1 @@ +decrypted diff --git a/.spellcheck.yml b/.spellcheck.yml new file mode 100644 index 0000000..96679f0 --- /dev/null +++ b/.spellcheck.yml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: Apache-2.0 + +matrix: + - name: markdown + aspell: + lang: en + d: en_US + camel-case: true + mode: markdown + sources: + - "**/*.md|!venv*/**" + dictionary: + wordlists: + - .spellcheck-en-custom.txt + pipeline: + - pyspelling.filters.context: + context_visible_first: true + escapes: '\\[\\`~]' + delimiters: + # Ignore multiline content between fences (fences can have 3 or more back ticks) + # ```language + # content + # ``` + - open: '^(?P *`{3,}).*$' + close: '^(?P=open)$' + # Ignore text between inline back ticks + - open: '(?P`+)' + close: '(?P=open)' diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..3f1bbe3 --- /dev/null +++ b/.yamllint @@ -0,0 +1,7 @@ +--- +extends: default + +rules: + document-start: disable + line-length: + max: 120