Skip to content

Commit ec496c9

Browse files
committed
added pre-commit
1 parent 3fe55a7 commit ec496c9

File tree

3 files changed

+38
-5
lines changed

3 files changed

+38
-5
lines changed

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
repos:
2+
- repo: https://github.com/asottile/reorder_python_imports
3+
rev: v1.6.1
4+
hooks:
5+
- id: reorder-python-imports
6+
language_version: python3
7+
- repo: https://github.com/psf/black
8+
rev: 19.3b0
9+
hooks:
10+
- id: black
11+
args: [--safe, --quiet, --line-length, "100"]
12+
language_version: python3
13+
require_serial: true
14+
- repo: https://github.com/pre-commit/pre-commit-hooks
15+
rev: v2.2.3
16+
hooks:
17+
- id: flake8
18+
verbose: true
19+
- repo: https://github.com/pre-commit/pre-commit-hooks
20+
rev: v2.3.0
21+
hooks:
22+
- id: trailing-whitespace
23+
language_version: python3
24+
- id: end-of-file-fixer
25+
language_version: python3
26+
- id: debug-statements
27+
language_version: python3
28+
- id: flake8
29+
language_version: python3
30+
- repo: https://github.com/asottile/pyupgrade
31+
rev: v1.22.1
32+
hooks:
33+
- id: pyupgrade
34+
language_version: python3

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@
99
<a href="https://pepy.tech/project/linkstatus"><img alt="Downloads" src="https://pepy.tech/badge/linkstatus"></a>
1010
<a href="https://pypi.org/project/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
1111
</p>
12-

linkstatus/linkstatus.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import os
21
import glob
2+
import os
33

4-
import requests
54
import click
5+
import requests
66

77
from linkstatus.parser import parse_file
88

@@ -71,10 +71,10 @@ def main(source):
7171
EXIT_STATUS = 1
7272

7373
click.echo(
74-
"{icon} L{ln} : {l}".format(
74+
"{icon} L{ln} : {url}".format(
7575
icon=click.style(icon, fg=fg, bold=True),
7676
ln=link.line,
77-
l=click.style(url, fg=fg),
77+
url=click.style(url, fg=fg),
7878
)
7979
)
8080

0 commit comments

Comments
 (0)