Skip to content

Commit

Permalink
add flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
akolpakov committed Nov 6, 2017
1 parent 0c204ce commit a1f41ec
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ test_no_coverage:
tox:
@tox

# run static analyser
flake8:
@flake8 django_unused_media tests

upload:
@python setup.py sdist upload
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Delete unused media files from Django project

[![build-status-image]][travis]
[![build-status-image]][travis] [![PyPI][pypi-version-image]][pypi-version]

This package provides management command `cleanup_unused_media` for Django applications. With help of this management command you can remove all media files which are no longer used (files without references from any Django model with `FileField` or `ImageField` fields or their inheritances).

Expand Down Expand Up @@ -77,9 +77,15 @@ To run tests:
```
make test
```
To run static analyser:
```
make flake8
```
# License
[MIT licence](./LICENSE)
[build-status-image]: https://api.travis-ci.org/akolpakov/django-unused-media.svg?branch=master
[travis]: http://travis-ci.org/akolpakov/django-unused-media?branch=master
[travis]: http://travis-ci.org/akolpakov/django-unused-media?branch=master
[pypi-version-image]: https://img.shields.io/pypi/v/django-unused-media.svg
[pypi-version]: https://pypi.python.org/pypi/django-unused-media
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
'coveralls',
'django_nose',
'pypandoc',
'flake8',
]

setup(
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ envlist =
pypy-1.11.X
downloadcache = .tox/_download/

;[flake8]


[testenv:py27-1.6.X]
basepython = python2.7
commands =
Expand Down Expand Up @@ -215,4 +218,4 @@ commands =
make setup
make test_no_coverage
deps =
Django>=1.10,<1.12
Django>=1.10,<1.12

0 comments on commit a1f41ec

Please sign in to comment.