diff --git a/README.rst b/README.rst index ffa7ef9..829e72a 100644 --- a/README.rst +++ b/README.rst @@ -16,7 +16,7 @@ To install:: Setup ----- -The release proces automatically handles updating the changelog and incrementing +The release process automatically handles updating the changelog and incrementing a version in setup.cfg. You'll need a few extra piece to make this work in each repository: a version to manipulate and information on the repo for changelog automation. diff --git a/isort.cfg b/isort.cfg index 1313d47..b4bb777 100644 --- a/isort.cfg +++ b/isort.cfg @@ -17,5 +17,5 @@ force_alphabetical_sort=False default_section=THIRDPARTY known_first_party=readthedocs,readthedocsinc -known_third_party=mock,builtins sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER +remove_imports=from __future__ import division, from __future__ import print_function, from __future__ import unicode_literals, from __future__ import absolute_import, from builtins import str, from builtins import object, from builtins import next, from builtins import range, from builtins import open, import six \ No newline at end of file diff --git a/pre-commit-config.yaml b/pre-commit-config.yaml index badfb2f..2b4f7ec 100644 --- a/pre-commit-config.yaml +++ b/pre-commit-config.yaml @@ -1,11 +1,11 @@ -exclude: 'migrations|settings|scripts|tests' +exclude: '^$|settings|scripts' fail_fast: false repos: -- repo: https://github.com/asottile/add-trailing-comma - rev: v0.7.0 - hooks: - - id: add-trailing-comma +# - repo: https://github.com/asottile/add-trailing-comma +# rev: v0.7.1 +# hooks: +# - id: add-trailing-comma - repo: git@github.com:humitos/mirrors-autoflake.git rev: v1.1 @@ -17,7 +17,7 @@ repos: rev: v0.25.0 hooks: - id: yapf - additional_dependencies: ['futures'] + exclude: 'migrations|tests' args: ['--style=.style.yapf', '--parallel', '--in-place'] # When calling `pre-commit autoupdate`, this repo needs to be commented because it fails @@ -26,15 +26,17 @@ repos: hooks: - id: python-import-sorter args: ['--silent-overwrite'] + exclude: 'wsgi.py' -- repo: git@github.com:humitos/mirrors-docformatter.git - rev: v1.0 +- repo: git@github.com:myint/docformatter.git + # Latest release v1.0 does not contains the .pre-commit-hooks.yaml file + rev: 7cb0c50b674680e28cae8c4c1add6b43ed2ccb91 hooks: - id: docformatter args: ['--in-place', '--wrap-summaries=80', '--wrap-descriptions=80', '--pre-summary-newline'] - repo: git@github.com:pre-commit/pre-commit-hooks - rev: v1.4.0 + rev: v2.1.0 hooks: # Disabled because yapf is better for our purpose # - id: autopep8-wrapper @@ -42,6 +44,7 @@ repos: - id: debug-statements - id: double-quote-string-fixer - id: end-of-file-fixer + exclude: 'static' - id: fix-encoding-pragma - id: check-merge-conflict - id: check-symlinks @@ -67,10 +70,9 @@ repos: # 'flake8-debugger', # 'flake8-todo', ] - exclude: 'test_oauth.py' - repo: git://github.com/guykisel/prospector-mirror - rev: b27f281eb9398fc8504415d7fbdabf119ea8c5e1 + rev: 7ff847e779347033ebbd9e3b88279e7f3a998b45 hooks: - id: prospector # https://github.com/pre-commit/pre-commit/issues/178 diff --git a/prospector.yml b/prospector.yml index b28d77b..ed96f22 100644 --- a/prospector.yml +++ b/prospector.yml @@ -49,13 +49,14 @@ pep257: - D100 # Missing docstring in public module - D101 # Missing docstring in public class - D102 # Missing docstring in public method - + - D104 - D105 + - D106 # Missing docstring in public nested class + - D107 # Missing docstring in __init__ + + - D202 # No blank lines allowed after function docstring (found 1) - D211 - - D104 - D212 # Multi-line docstring summary should start at the first line - - D107 # Missing docstring in __init__ - - D106 # Missing docstring in public nested class # pydocstyle - D403 # First word of the first line should be properly capitalized ('Github', not 'GitHub')