Skip to content
This repository was archived by the owner on Feb 13, 2021. It is now read-only.

Commit aa8f2b0

Browse files
author
Thiago C. D'Ávila
authored
Merge pull request #21 from staticdev/improved-pre-commit
Improved pre commit
2 parents 86468a3 + f0979b8 commit aa8f2b0

2 files changed

Lines changed: 31 additions & 13 deletions

File tree

.pre-commit-config.yaml

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,31 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.5.0
4-
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
8-
- repo: local
9-
hooks:
10-
- id: black
11-
name: black
12-
entry: poetry run black
13-
language: system
14-
types: [python]
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.5.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: check-added-large-files
9+
- id: check-toml
10+
- repo: https://github.com/prettier/prettier
11+
rev: 2.0.5
12+
hooks:
13+
- id: prettier
14+
- repo: local
15+
hooks:
16+
- id: black
17+
name: black
18+
entry: poetry run black
19+
language: system
20+
types: [python]
21+
- id: flake8
22+
name: flake8
23+
entry: poetry run flake8
24+
language: system
25+
types: [python]
26+
- id: mypy
27+
name: mypy
28+
entry: poetry run mypy
29+
language: system
30+
types: [python]
31+
require_serial: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Codecov](https://codecov.io/gh/staticdev/humanizer-portugues/badge.svg?branch=master&service=github)](https://codecov.io/gh/staticdev/humanizer-portugues)
55
![PyPi](https://badge.fury.io/py/humanizer-portugues.svg)
66
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
7+
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/pre-commit/pre-commit)
78

89
Este pacote contém várias funções de humanização (humanization), como
910
transformar um número em uma duração legível para humanos ('três minutos

0 commit comments

Comments
 (0)