-
-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add pre-commit to makefile * Fix #151 setup pre-commit and black
- Loading branch information
1 parent
8a2ae3d
commit e485217
Showing
123 changed files
with
2,543 additions
and
2,467 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,13 +1,16 @@ | ||
scanner: | ||
diff_only: True # If False, the entire file touched by the Pull Request is scanned for errors. If True, only the diff is scanned. | ||
linter: flake8 # Other option is flake8 | ||
|
||
flake8: # Same as scanner.linter value. Other option is flake8 | ||
max-line-length: 79 # Default is 79 in PEP 8 | ||
ignore: # Errors and warnings to ignore | ||
- F841 # (local variable assigned but never used, useful for debugging on exception) | ||
- W504 # (line break after binary operator, I prefer to put `and|or` at the end) | ||
- W503 # (line break before binary operator, black prefer to put `and|or` at the end) | ||
- F403 # (star import `from foo import *` often used in __init__ files) | ||
- E401 # (multiple imports on one line) | ||
|
||
- F401 # (not used import) | ||
- E402 # (Imports not on top) | ||
|
||
# no_blank_comment: True # If True, no comment is made on PR without any errors. |
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,36 @@ | ||
exclude: docs | ||
repos: | ||
- repo: https://github.com/asottile/reorder_python_imports | ||
rev: v1.4.0 | ||
hooks: | ||
- id: reorder-python-imports | ||
language_version: python3 | ||
args: [--py3-plus] | ||
- repo: https://github.com/ambv/black | ||
rev: stable | ||
hooks: | ||
- id: black | ||
args: [--line-length=79] | ||
language_version: python3.7 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.0.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
language_version: python3 | ||
- id: end-of-file-fixer | ||
language_version: python3 | ||
- id: check-yaml | ||
language_version: python3 | ||
- id: check-merge-conflict | ||
language_version: python3 | ||
- id: debug-statements | ||
language_version: python3 | ||
- id: fix-encoding-pragma | ||
language_version: python3 | ||
args: [--remove] | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.0 | ||
hooks: | ||
- id: flake8 | ||
args: ['--ignore=F403,W504,W503,F841,E401,F401,E402'] | ||
language_version: python3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
# coding: utf-8 | ||
from dynaconf.base import LazySettings | ||
from dynaconf.validator import Validator, ValidationError | ||
from dynaconf.contrib import FlaskDynaconf, DjangoDynaconf | ||
from dynaconf.contrib import DjangoDynaconf | ||
from dynaconf.contrib import FlaskDynaconf | ||
from dynaconf.validator import ValidationError | ||
from dynaconf.validator import Validator | ||
|
||
settings = LazySettings() | ||
|
||
__all__ = [ | ||
'settings', 'LazySettings', 'Validator', | ||
'FlaskDynaconf', 'ValidationError', 'DjangoDynaconf' | ||
"settings", | ||
"LazySettings", | ||
"Validator", | ||
"FlaskDynaconf", | ||
"ValidationError", | ||
"DjangoDynaconf", | ||
] |
Oops, something went wrong.