Skip to content

Commit 76637b7

Browse files
author
“Joshua
committed
lint
1 parent 249d6e3 commit 76637b7

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v1.3.0
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- repo: https://github.com/pycqa/flake8
9+
rev: 7.1.1
410
hooks:
511
- id: flake8

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ python pull_alerts.py --include-low
6161
By default, local timezone is used to print alert time. To change default timezone use `TZ` environment variable:
6262
```bash
6363
TZ=UTC python pull_alerts.py
64-
```
64+
```

pull_alerts.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
### Copy this file into pull_alerts.py in from https://github.com/lyft/opsreview
2-
### To include low_urgency call it like this: python pull_alerts.py --include-low
1+
# Copy this file into pull_alerts.py in from https://github.com/lyft/opsreview
2+
# To include low_urgency call it like this: python pull_alerts.py --include-low
33

44
from __future__ import (absolute_import, division, print_function,
55
unicode_literals)
@@ -155,7 +155,10 @@ def print_stats(high_urg_incidents, low_urg_incidents):
155155
| Transient (#t) | {:12} | {:11} |
156156
| Not Tagged | {:12} | {:11} |
157157
| TOTAL | {:12} | {:11} |
158-
""".format(formatted_start, formatted_end, h_a, l_a, h_na, l_na, h_t, l_t, h_nt, l_nt, len(high_urg_incidents), len(low_urg_incidents)))
158+
""".format(
159+
formatted_start, formatted_end, h_a, l_a, h_na, l_na, h_t, l_t, h_nt, l_nt,
160+
len(high_urg_incidents), len(low_urg_incidents)
161+
))
159162

160163

161164
def get_breakdown(incidents):
@@ -197,4 +200,4 @@ def is_transient(incident):
197200
args = parser.parse_args()
198201
print_all_incidents(
199202
include_low=args.include_low
200-
)
203+
)

0 commit comments

Comments
 (0)