Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Update quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ziima committed Jul 19, 2018
1 parent 0358d9e commit 814feb3
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 24 deletions.
5 changes: 0 additions & 5 deletions .flake8

This file was deleted.

6 changes: 0 additions & 6 deletions .isort.cfg

This file was deleted.

15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.PHONY: test test-openid test-djopenid coverage isort check-all check-isort check-flake8
.PHONY: all test test-openid test-djopenid coverage isort

SOURCES = openid setup.py admin contrib

# Run tests by default
all: test
# Run tox by default
all:
tox

test-openid:
python -m unittest discover --start=openid
Expand All @@ -22,11 +23,3 @@ coverage:

isort:
isort --recursive ${SOURCES}

check-all: check-isort check-flake8

check-isort:
isort --check-only --diff --recursive ${SOURCES}

check-flake8:
flake8 --format=pylint ${SOURCES}
13 changes: 13 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
[isort]
line_length = 120
combine_as_imports = true
default_section = THIRDPARTY
known_first_party = openid
add_imports = from __future__ import unicode_literals

[flake8]
max-line-length = 120
# Ignore E123 - enforce hang-closing instead
ignore = E123,W503
max-complexity = 24

[sdist]
force_manifest=1
formats=gztar,zip
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ commands =
djopenid: coverage run --parallel-mode --branch --source=openid,examples --module unittest discover --start={toxinidir}/examples

[testenv:quality]
whitelist_externals = make
basepython = python2.7
extras =
quality
commands =
make check-all
isort --check-only --diff --recursive openid setup.py admin contrib
flake8 --format=pylint openid setup.py admin contrib

0 comments on commit 814feb3

Please sign in to comment.