Skip to content

Commit 2722386

Browse files
authored
Drop Python 2.7 support
* Remove py27 toxenv * Remove 2.7 classifier and bump version * Upgrade dependencies * Add upgrade tools to pre-commit configuration * Run pre-commit
1 parent 1b2d4c0 commit 2722386

File tree

15 files changed

+111
-204
lines changed

15 files changed

+111
-204
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
strategy:
1313
matrix:
1414
include:
15-
- python-version: "2.7"
16-
toxenv: "py27"
1715
- python-version: "3.6"
1816
toxenv: "py36"
1917
- python-version: "3.7"

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
repos:
2+
- repo: https://github.com/asottile/pyupgrade
3+
rev: v2.31.0
4+
hooks:
5+
- id: pyupgrade
6+
args: [--py3-plus, --py36-plus]
7+
- repo: https://github.com/asottile/reorder_python_imports
8+
rev: v2.6.0
9+
hooks:
10+
- id: reorder-python-imports
11+
args: [--py3-plus, --py36-plus]
212
- repo: https://github.com/ambv/black
313
rev: 22.8.0
414
hooks:

amclient/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
42
# Import the primary AMClient script.
53
from .amclient import AMClient
64

0 commit comments

Comments
 (0)