A collection of python patterns that help you collect your technical debt in a non-destructive manner
Go to file
Hervé Beraud be7bc9ecf9 Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I382aa79f7357a86af11783f59e0f1680d5bed8d0
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-22 10:37:04 +02:00
debtcollector Stop to use the __future__ module. 2020-06-02 20:09:50 +02:00
doc/source Adding pre-commit 2020-09-22 10:37:04 +02:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-05-26 08:56:49 +02:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:25:54 +00:00
.gitignore Switch to stestr 2018-07-09 16:15:47 +07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:47:51 +00:00
.mailmap Initial commit 2014-12-12 22:26:59 -08:00
.pre-commit-config.yaml Adding pre-commit 2020-09-22 10:37:04 +02:00
.stestr.conf Switch to stestr 2018-07-09 16:15:47 +07:00
.zuul.yaml Switch to Victoria tests 2020-05-09 14:39:58 +02:00
CONTRIBUTING.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-27 21:03:07 +08:00
HACKING.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-27 21:03:07 +08:00
LICENSE Initial commit 2014-12-12 22:26:59 -08:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-06-27 21:03:07 +08:00
babel.cfg Initial commit 2014-12-12 22:26:59 -08:00
lower-constraints.txt Update lower-constraints versions 2020-06-10 10:05:45 -05:00
requirements.txt [ussuri][goal] Drop python 2.7 support and testing 2020-02-04 10:28:51 +01:00
setup.cfg [ussuri][goal] Drop python 2.7 support and testing 2020-02-04 10:28:51 +01:00
setup.py [ussuri][goal] Drop python 2.7 support and testing 2020-02-04 10:28:51 +01:00
test-requirements.txt Adding pre-commit 2020-09-22 10:37:04 +02:00
tox.ini Adding pre-commit 2020-09-22 10:37:04 +02:00

README.rst

Team and repository tags

image

Debtcollector

Latest Version

A collection of Python deprecation patterns and strategies that help you collect your technical debt in a non-destructive manner. The goal of this library is to provide well documented developer facing deprecation patterns that start of with a basic set and can expand into a larger set of patterns as time goes on. The desired output of these patterns is to apply the warnings module to emit DeprecationWarning or PendingDeprecationWarning or similar derivative to developers using libraries (or potentially applications) about future deprecations.