Skip to content

Commit fafff36

Browse files
authored
Upgrade black and use python 3.8 in TravisCI (#301)
* Upgrade black and use python 3.8 * Upgrade to using python 3.8 in travis
1 parent 1b254f2 commit fafff36

33 files changed

+8
-59
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/python/black
3-
rev: 18.6b4
3+
rev: 19.10b0
44
hooks:
55
- id: black
6-
language_version: python3.6
6+
language_version: python3.8

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: python
22
python:
3-
- "3.6"
3+
- "3.8"
44
sudo: required
55

66
before_install:

aws/ec2/test_ec2_security_group_opens_all_ports_to_all.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import pytest
42

53
from aws.ec2.helpers import (

aws/ec2/test_ec2_security_group_opens_all_ports_to_self.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import pytest
42

53
from aws.ec2.helpers import (

aws/iam/meta_test_resources.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
from dateutil.parser import parse
42

53
from aws.iam.resources import iam_users, iam_inline_policies

aws/iam/test_iam_admin_user_with_access_keys.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ def test_iam_admin_user_with_access_key(iam_admin_user):
1818
"""
1919
assert (
2020
iam_admin_user["CredentialReport"]["access_key_1_active"] != "true"
21-
), "Access key found for admin user: {}".format(
22-
iam_admin_user["UserName"]
23-
)
21+
), "Access key found for admin user: {}".format(iam_admin_user["UserName"])
2422
assert (
2523
iam_admin_user["CredentialReport"]["access_key_2_active"] != "true"
26-
), "Access key found for admin user: {}".format(
27-
iam_admin_user["UserName"]
28-
)
24+
), "Access key found for admin user: {}".format(iam_admin_user["UserName"])

aws/rds/resources.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
from conftest import botocore_client
42

53

aws/rds/test_rds_db_instance_backup_enabled.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import pytest
32

43
from aws.rds.resources import rds_db_instances_with_tags

aws/rds/test_rds_db_instance_is_multiaz.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import pytest
32

43
from aws.rds.resources import rds_db_instances_with_tags

aws/rds/test_rds_db_instance_is_postgres_with_invalid_certificate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
import datetime
42
from botocore.utils import parse_timestamp
53

0 commit comments

Comments
 (0)