-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-commit hooks for PHP linting, Python Black, and other basics …
…(conflict resolved) (#1299) * Apply Black autoformatting to Python files Re-application of 6ff8e5a from #1253. * Create .pre-commit-config.yaml Hooks that may be useful in the future but will require some initial work to implement are commented out for now. * Add JSON linting to pre-commit hooks * Add XML linting to pre-commit hooks * Use docformatter for docstings For alignment with PEP 257: https://www.python.org/dev/peps/pep-0257/ Re-application of ca23118 from #1253.
- Loading branch information
Showing
13 changed files
with
843 additions
and
664 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.2.3 | ||
hooks: | ||
- id: check-added-large-files | ||
args: [--maxkb=100] | ||
- id: check-ast | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
# - id: check-docstring-first | ||
# - id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-xml | ||
# - id: check-yaml | ||
# - id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
# - id: trailing-whitespace | ||
# args: [--markdown-linebreak-ext=md] | ||
- repo: https://github.com/digitalpulp/pre-commit-php | ||
rev: 1.3.0 | ||
hooks: | ||
- id: php-lint-all | ||
- repo: https://github.com/python/black | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black |
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
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
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
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
Oops, something went wrong.