Skip to content

Commit

Permalink
Merge 9fc17c1 into 1c7d695
Browse files Browse the repository at this point in the history
  • Loading branch information
myslak71 committed Aug 4, 2019
2 parents 1c7d695 + 9fc17c1 commit 4b04e1b
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 12 deletions.
32 changes: 25 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,31 @@
language: python
sudo: required
dist: xenial
python: "3.7"
cache: pip
install:
- pip install -r requirements-dev.txt
script:
- make safety
- make lint
- pip install .
- make unittests
- pip install .[dev]
env:
global:
- MAKEFLAGS="-j 2"

jobs:
include:
- stage: test
name: "Linters"
script: make lint
python:
- "3.6"
- "3.7"
- name: "Safety"
script: make safety
python:
- "3.6"
- "3.7"
- name: "Unit tests"
script: make unittests
python:
- "3.6"
- "3.7"

script: python --version
after_success: coveralls
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ coverage_html: ## create html coverage report and open it in the default browse
xdg-open htmlcov/index.html

flake8: ## run flake8
flake8 flake8_koles/
flake8 flake8_koles/ --ignore=KOL001,KOL002

lint: mypy flake8 yamllint # run all linters

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

[![Build Status](https://travis-ci.org/myslak71/flake8-koles.svg?branch=master)](https://travis-ci.org/myslak71/flake8-koles)
[![Coverage Status](https://coveralls.io/repos/github/myslak71/flake8-koles/badge.svg?branch=master)](https://coveralls.io/github/myslak71/flake8-koles?branch=master)
![image](https://img.shields.io/badge/python-3.7-blue.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flake8-koles)
![image](https://img.shields.io/badge/version-0.1.2-yellow)
![Requires.io](https://img.shields.io/requires/github/myslak71/flake8-koles)
![GitHub](https://img.shields.io/github/license/myslak71/flake8-koles)

Watch your language young pal!

Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ flake8==3.7.8
flake8-docstrings==1.3.1
flake8-print==3.1.0
flake8-isort==2.7.0
mypy==0.711
mypy==0.720
yamllint==1.16.0

# Testing purposes
########################
pytest==5.0.1
pytest-cov==2.7.1
coveralls==1.8.1
coveralls==1.8.2

# Debugging
########################
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
'r', encoding='utf-8') as file:
exec(file.read(), about)

with open(os.path.join(DIR_PATH, 'requirements-dev.txt'), encoding='utf-8') as file:
requirements_dev = [str(req) for req in parse_requirements(file.read())]

setup(
name=about['__title__'],
description=about['__description__'],
Expand All @@ -31,8 +34,9 @@
packages=['flake8_koles'],
package_data={'flake8_koles': ['data/swear_list/*.dat']},
py_modules=['flake8_koles'],
python_requires=">=3.7",
python_requires=">=3.6",
install_requires=install_requires,
extras_require={'dev': requirements_dev},
entry_points={
'flake8.extension': [
'KOL = flake8_koles.checker:KolesChecker',
Expand All @@ -45,6 +49,7 @@
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
)

0 comments on commit 4b04e1b

Please sign in to comment.