diff --git a/.travis.yml b/.travis.yml index 2a5a136..e795616 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: python python: + - "3.6" - "3.7" install: - pip install -r requirements_dev.txt diff --git a/README.md b/README.md index ac505a5..b0f5deb 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://travis-ci.org/best-doctor/flake8-class-attributes-order.svg?branch=master)](https://travis-ci.org/best-doctor/flake8-class-attributes-order) [![Maintainability](https://api.codeclimate.com/v1/badges/28b7cd9d0714ec4b93a3/maintainability)](https://codeclimate.com/github/best-doctor/flake8-class-attributes-order/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/28b7cd9d0714ec4b93a3/test_coverage)](https://codeclimate.com/github/best-doctor/flake8-class-attributes-order/test_coverage) - +![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-class-attributes-order) An extension for flake8 to report on wrong class attributes order and class level logic. diff --git a/flake8_class_attributes_order/__init__.py b/flake8_class_attributes_order/__init__.py index fa9c4ec..2792152 100644 --- a/flake8_class_attributes_order/__init__.py +++ b/flake8_class_attributes_order/__init__.py @@ -1 +1 @@ -__version__ = '0.0.6' +__version__ = '0.0.7' diff --git a/flake8_class_attributes_order/checker.py b/flake8_class_attributes_order/checker.py index 4f1ab1e..4ec09b3 100644 --- a/flake8_class_attributes_order/checker.py +++ b/flake8_class_attributes_order/checker.py @@ -1,13 +1,10 @@ -from __future__ import annotations import ast -from typing import Generator, Tuple, List, Union, Mapping, TYPE_CHECKING +from typing import Generator, Tuple, List, Union, Mapping +from typing_extensions import Final from flake8_class_attributes_order import __version__ as version -if TYPE_CHECKING: - from typing_extensions import Final - class ClassAttributesOrderChecker: NON_STRICT_NODE_TYPE_WEIGHTS: Final[Mapping[str, int]] = { diff --git a/setup.py b/setup.py index e048954..a2899e4 100644 --- a/setup.py +++ b/setup.py @@ -22,10 +22,22 @@ def get_long_description() -> str: setup( name=package_name, description='A flake8 extension that checks classes attributes order', + classifiers=[ + 'Environment :: Console', + 'Framework :: Flake8', + 'Operating System :: OS Independent', + 'Topic :: Software Development :: Documentation', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Software Development :: Quality Assurance', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + ], long_description=get_long_description(), long_description_content_type='text/markdown', packages=find_packages(), - python_requires='>=3.7', + python_requires='>=3.6', include_package_data=True, keywords='flake8', version=get_version(),