-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
117 additions
and
560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
sha: v1.1.6 | ||
hooks: | ||
- id: forbid-crlf | ||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
sha: 1.10.2 | ||
hooks: | ||
- id: forbid-binary | ||
exclude: (extras/jar/plantuml.jar) | ||
- id: git-dirty | ||
- id: shellcheck | ||
exclude: (extras/script/wait-for-it.sh|extras/git/hooks/prepare-commit-msg) | ||
args: | ||
- --exclude=SC1072,SC1073,SC2068 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks.git | ||
sha: v1.1.1 | ||
sha: v2.0.0 | ||
hooks: | ||
- id: detect-private-key | ||
files: ^(?!\.?git-crypt) | ||
- id: check-merge-conflict | ||
- id: trailing-whitespace | ||
language_version: python3 | ||
files: ^tf|-|\.(py|tfvars|tf|tfenv|env|yml|yaml|pem|key|mock)$ | ||
- id: end-of-file-fixer | ||
|
@@ -13,11 +26,14 @@ | |
files: ^tf|-|\.(py|env|yml|yaml)$ | ||
- id: check-case-conflict | ||
- id: check-json | ||
language_version: python3 | ||
exclude: zappa_settings.json | ||
- id: pretty-format-json | ||
args: | ||
- --autofix | ||
exclude: zappa_settings.json | ||
- id: check-xml | ||
language_version: python3 | ||
- id: check-yaml | ||
language_version: python3 | ||
- id: check-case-conflict | ||
- id: check-byte-order-marker | ||
- id: check-ast | ||
|
@@ -26,61 +42,31 @@ | |
- id: autopep8-wrapper | ||
args: | ||
- -i | ||
- --ignore=E501 | ||
- --ignore=E501,D205 | ||
language_version: python3 | ||
- id: double-quote-string-fixer | ||
- id: check-docstring-first | ||
- id: pretty-format-json | ||
- id: detect-aws-credentials | ||
- id: requirements-txt-fixer | ||
- id: check-symlinks | ||
- id: name-tests-test | ||
exclude: (tests/settings.py|tests/test_app/*) | ||
args: | ||
- --django | ||
- id: file-contents-sorter | ||
- id: fix-encoding-pragma | ||
exclude: migrations | ||
- id: sort-simple-yaml | ||
- id: flake8 | ||
files: ^src/.*\.py$ | ||
args: | ||
- --max-line-length=80 | ||
- --max-line-length=100 | ||
- --diff | ||
- --exclude=docs,migrations | ||
- id: check-executables-have-shebangs | ||
- repo: https://github.com/pre-commit/mirrors-pylint.git | ||
sha: v1.7.4 | ||
hooks: | ||
- id: pylint | ||
language_version: python3 | ||
exclude: ^migrations/.*\.py$ | ||
args: | ||
- --rcfile=.pylintrc | ||
- --disable=no-name-in-module,import-error | ||
- --ignore=settings_test, migrations | ||
- repo: https://github.com/pre-commit/pre-commit.git | ||
sha: v1.4.1 | ||
sha: v1.12.0 | ||
hooks: | ||
- id: validate_manifest | ||
- repo: https://github.com/asottile/reorder_python_imports.git | ||
sha: v0.3.5 | ||
hooks: | ||
- id: reorder-python-imports | ||
language_version: python3 | ||
- repo: https://github.com/detailyang/pre-commit-shell.git | ||
sha: 1.0.2 | ||
hooks: | ||
- id: shell-lint | ||
exclude: ^extras/script/wait-for-it.sh$ | ||
args: | ||
- --exclude=SC1072,SC1073,SC2068 | ||
- repo: https://github.com/asottile/add-trailing-comma | ||
sha: v0.6.4 | ||
hooks: | ||
- id: add-trailing-comma | ||
- repo: https://github.com/antonbabenko/pre-commit-terraform.git | ||
sha: v1.2.0 | ||
hooks: | ||
- id: terraform_fmt | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety | ||
sha: v1.1.0 | ||
hooks: | ||
|
@@ -89,42 +75,45 @@ | |
sha: v1.0.3 | ||
hooks: | ||
- id: python-bandit-vulnerability-check | ||
args: | ||
- --skip=B104 | ||
files: .py$ | ||
- repo: https://github.com/pre-commit/mirrors-csslint | ||
sha: v1.0.5 | ||
hooks: | ||
- id: csslint | ||
- repo: https://github.com/awebdeveloper/pre-commit-prettier | ||
sha: v0.0.1 | ||
hooks: | ||
- id: prettier | ||
args: [] | ||
additional_dependencies: | ||
- [email protected] | ||
- repo: git://github.com/kintoandar/pre-commit.git | ||
sha: v2.1.0 | ||
hooks: | ||
- id: terraform_fmt | ||
- id: terraform_validate | ||
- id: prometheus_check_rules | ||
- id: prometheus_check_config | ||
files: .py$ | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs | ||
sha: v1.1.0 | ||
hooks: | ||
- id: dockerfile_lint | ||
- id: markdown-toc | ||
- repo: git://github.com/Lucas-C/pre-commit-hooks-markup | ||
sha: v1.0.0 | ||
hooks: | ||
- id: rst-linter | ||
exclude: (docs/*|tests/*) | ||
- repo: https://github.com/asottile/pyupgrade | ||
sha: v1.2.0 | ||
- repo: https://github.com/asottile/add-trailing-comma | ||
sha: v0.7.1 | ||
hooks: | ||
- id: pyupgrade | ||
- id: add-trailing-comma | ||
- repo: https://github.com/pricematch/pricematch-pre-commit-hooks | ||
sha: 82b0c142b363547cc873bc6581fa3074087a37d2 | ||
sha: 93f5296d960021ee1f507a59a0bca1fe8f73c285 | ||
hooks: | ||
- id: do_not_commit | ||
- repo: git://github.com/luismayta/pre-commit-isort | ||
sha: 1.0.1 | ||
hooks: | ||
- id: isort | ||
exclude: migrations|pootle/static|pootle/translations|pootle/locale|pootle/assets|templates | ||
args: | ||
- --settings-path=.isort.cfg | ||
- repo: https://github.com/luismayta/pre-commit-mypy.git | ||
sha: 0.1.1 | ||
hooks: | ||
- id: mypy | ||
args: | ||
- --ignore-missing-imports | ||
- repo: https://github.com/pre-commit/mirrors-pylint.git | ||
sha: v2.1.1 | ||
hooks: | ||
- id: pylint | ||
language_version: python3 | ||
exclude: migrations|conf.py|pootle/static|pootle/translations|pootle/locale|pootle/assets|templates | ||
args: | ||
- --rcfile=.pylintrc | ||
- --disable=no-name-in-module,import-error,ungrouped-imports | ||
- --ignore=settings_test, migrations |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# ~/.tmuxinator/python-facebook-chatbot.yml | ||
name: python-facebook-chatbot | ||
root: <%= ENV["PROJECTS"] %>/python/python-facebook-chatbot | ||
# Optional tmux socket | ||
# socket_name: foo | ||
|
||
# Note that the pre and post options have been deprecated and will be replaced by | ||
# project hooks. | ||
|
||
# Project hooks | ||
|
||
# Runs on project start, always | ||
on_project_start: make environment | ||
|
||
# Run on project start, the first time | ||
# on_project_first_start: command | ||
|
||
# Run on project start, after the first time | ||
# on_project_restart: command | ||
|
||
# Run on project exit ( detaching from tmux session ) | ||
on_project_exit: make docker.down | ||
|
||
# Run on project stop | ||
on_project_stop: make docker.down | ||
|
||
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions. | ||
pre_window: pyenv activate python-facebook-chatbot | ||
|
||
# Pass command line options to tmux. Useful for specifying a different tmux.conf. | ||
# tmux_options: -f ~/.tmux.mac.conf | ||
|
||
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu. | ||
# tmux_command: byobu | ||
|
||
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used. | ||
startup_window: docker | ||
|
||
windows: | ||
- editor: | ||
layout: even-horizontal | ||
panes: | ||
- editor: | ||
- pwd: | ||
- pwd: | ||
- python: | ||
layout: main-vertical | ||
panes: | ||
- ipython: | ||
- databases: | ||
layout: main-vertical | ||
panes: | ||
- postgresql: | ||
- ls: | ||
- aws: | ||
layout: main-vertical | ||
panes: | ||
- webserver: | ||
- databases: | ||
- docker: | ||
layout: main-vertical | ||
panes: | ||
- webserver: | ||
- databases: |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.