This repository was archived by the owner on Mar 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
Adding pre-commit hooks and black formatting #560
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1e8f3f6
trying precommit
vale-salvatelli e5627a1
removing changes
vale-salvatelli e434caa
readding black
vale-salvatelli ec3610a
readding black
vale-salvatelli 24eea73
test
vale-salvatelli d1d2a7f
removing mypy
vale-salvatelli b97ca87
Merge branch 'main' into vsalva/precommit-hooks
vale-salvatelli e603d4e
revertted test file to avoid conflict
vale-salvatelli 63af7b8
Merge branch 'main' into vsalva/precommit-hooks
vale-salvatelli bdfddad
fixing conflict on changelog
vale-salvatelli bb0b8a6
fixing conflict on changelog
vale-salvatelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,35 @@ | ||
| # See https://pre-commit.com for more information | ||
| # See https://pre-commit.com/hooks.html for more hooks | ||
| # See https://github.com/pre-commit/pre-commit-hooks/blob/master/.pre-commit-config.yaml for an example with more hooks | ||
|
|
||
| exclude: '^excluded_files_regex$' | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.0.1 | ||
| hooks: | ||
| - id: trailing-whitespace | ||
| - id: end-of-file-fixer | ||
| - id: check-yaml | ||
| - id: check-added-large-files | ||
| - id: check-ast | ||
| - id: check-merge-conflict | ||
| - id: debug-statements | ||
| - id: mixed-line-ending | ||
| args: [--fix=lf] | ||
|
|
||
| - repo: https://github.com/PyCQA/flake8 | ||
| rev: 3.9.2 | ||
| hooks: | ||
| - id: flake8 | ||
| additional_dependencies: [flake8-typing-imports==1.7.0] | ||
|
|
||
| - repo: https://github.com/pre-commit/mirrors-autopep8 | ||
| rev: v1.5.7 | ||
| hooks: | ||
| - id: autopep8 | ||
|
|
||
| - repo: https://github.com/ambv/black | ||
| rev: 21.9b0 | ||
| hooks: | ||
| - id: black | ||
| language_version: python3.7 |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.