Skip to content

Commit

Permalink
add python 3.6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Илья Лебедев committed Nov 4, 2019
1 parent 841a70d commit 9eba41a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: python
python:
- "3.6"
- "3.7"
install:
- pip install -r requirements_dev.txt
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion flake8_class_attributes_order/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.0.6'
__version__ = '0.0.7'
7 changes: 2 additions & 5 deletions flake8_class_attributes_order/checker.py
Original file line number Diff line number Diff line change
@@ -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]] = {
Expand Down
14 changes: 13 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 9eba41a

Please sign in to comment.