-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from nicoddemus/pre-commit-black
Add pre-commit for style checks and use black as formatter
- Loading branch information
Showing
34 changed files
with
446 additions
and
285 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,32 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 18.6b4 | ||
hooks: | ||
- id: black | ||
args: [--safe, --quiet] | ||
language_version: python3.6 | ||
- repo: https://github.com/asottile/blacken-docs | ||
rev: v0.2.0 | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black==18.6b4] | ||
language_version: python3.6 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: flake8 | ||
- repo: local | ||
hooks: | ||
- id: rst | ||
name: rst | ||
entry: rst-lint --encoding utf-8 | ||
files: ^(CHANGELOG.rst|HOWTORELEASE.rst|README.rst|changelog/.*)$ | ||
language: python | ||
additional_dependencies: [pygments, restructuredtext_lint] | ||
python_version: python3.6 | ||
- repo: https://github.com/pre-commit/pygrep-hooks | ||
rev: v1.0.0 | ||
hooks: | ||
- id: rst-backticks |
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
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 +1 @@ | ||
Add changelog in long package description and documentation. | ||
Add changelog in long package description and documentation. |
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,5 +1,8 @@ | ||
from setuptools import setup | ||
|
||
setup(name="eggsample-spam", install_requires="eggsample", | ||
entry_points={'eggsample': ['spam = eggsample_spam']}, | ||
py_modules=['eggsample_spam']) | ||
setup( | ||
name="eggsample-spam", | ||
install_requires="eggsample", | ||
entry_points={"eggsample": ["spam = eggsample_spam"]}, | ||
py_modules=["eggsample_spam"], | ||
) |
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,12 +1,14 @@ | ||
import eggsample | ||
|
||
|
||
@eggsample.hookimpl | ||
def eggsample_add_ingredients(): | ||
spices = ["salt", "pepper"] | ||
you_can_never_have_enough_eggs = ["egg", "egg"] | ||
ingredients = spices + you_can_never_have_enough_eggs | ||
return ingredients | ||
|
||
|
||
@eggsample.hookimpl | ||
def eggsample_prep_condiments(condiments): | ||
condiments["mint sauce"] = 1 |
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,5 +1,8 @@ | ||
from setuptools import setup, find_packages | ||
|
||
setup(name="eggsample", install_requires="pluggy>=0.3,<1.0", | ||
entry_points={'console_scripts': ['eggsample=eggsample.host:main']}, | ||
packages=find_packages()) | ||
setup( | ||
name="eggsample", | ||
install_requires="pluggy>=0.3,<1.0", | ||
entry_points={"console_scripts": ["eggsample=eggsample.host:main"]}, | ||
packages=find_packages(), | ||
) |
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.