From 7b2e7293da2266a6abec2119468fdcee2fd61f33 Mon Sep 17 00:00:00 2001 From: Manuel Barkhau Date: Mon, 5 Oct 2020 20:52:04 +0000 Subject: [PATCH] add flake8-2020 --- requirements/integration.txt | 1 + setup.cfg | 2 +- src/pycalver/pysix.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements/integration.txt b/requirements/integration.txt index 1395383..3391511 100644 --- a/requirements/integration.txt +++ b/requirements/integration.txt @@ -18,6 +18,7 @@ flake8-docstrings flake8-builtins flake8-comprehensions flake8-junit-report +flake8-2020 pylint-ignore>=2020.1013 mypy # pylint doesn't support isort>=5 for now diff --git a/setup.cfg b/setup.cfg index ad0eff8..4e9f261 100644 --- a/setup.cfg +++ b/setup.cfg @@ -75,7 +75,7 @@ ignore = D400 # First line should be in imperative mood D401 -select = A,AAA,D,C,E,F,W,H,B,D212,D404,D405,D406,B901,B950 +select = A,AAA,D,C,E,F,W,H,B,D212,D404,D405,D406,B901,B950,YTT exclude = .git __pycache__ diff --git a/src/pycalver/pysix.py b/src/pycalver/pysix.py index 354f2d5..f11c7d8 100644 --- a/src/pycalver/pysix.py +++ b/src/pycalver/pysix.py @@ -6,7 +6,7 @@ import sys import typing as typ -PY2 = sys.version < "3" +PY2 = sys.version_info.major < 3 try: