Skip to content

Commit

Permalink
Add pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
nezhar committed Jan 3, 2020
1 parent 89b3ae0 commit dd85be3
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ venv/**
dist/**
updatable.egg-info/**
/.coverage
/.vscode
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-docstring-first
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/nezhar/pylama-pre-commit
rev: master
hooks:
- id: pylama
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.0 - Unreleased]


## [0.4.0]

### Added
Expand Down Expand Up @@ -49,9 +52,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial Release

[0.5.0 - Unreleased]: https://github.com/nezhar/updatable
[0.4.0]: https://pypi.org/project/updatable/0.4.0/
[0.3.1]: https://pypi.org/project/updatable/0.3.1/
[0.3.0]: https://pypi.org/project/updatable/0.3.0/
[0.3.0]: https://pypi.org/project/updatable/0.3.0/
[0.2.0]: https://pypi.org/project/updatable/0.2.0/
[0.1.5]: https://pypi.org/project/updatable/0.1.5/
[0.1.4]: https://pypi.org/project/updatable/0.1.4/
Expand Down
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,17 @@ Prints:
urllib3 (1.25.6)
Patch releases:
-- 1.25.7 on 2019-11-11 15:10:09


Development
~~~~~~~~~~~

Add pre-commit package:
::

pip install pre-commit

Install pre-commit hook:
::

pre-commit install
2 changes: 1 addition & 1 deletion updatable/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = "0.4.0"
__version__ = "0.5.0"

0 comments on commit dd85be3

Please sign in to comment.