Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,5 @@ stages:
jobs:
include:
- stage: lint
install:
- pip install black pyflakes
script:
- pyflakes webmention tests
- black --check webmention tests
- tox -e lint
15 changes: 12 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,24 @@ classifiers =
Programming Language :: Python :: 3.7

[options]
package_dir = =src
packages = find:
install_requires =
Django>=1.8.2
requests>=2.7.0

[options.packages.find]
exclude =
tests*
where = src

[options.extras_require]
test =
coverage
pytest
pytest-cov
pytest-django
lint =
pyflakes
black

[coverage:run]
branch = True
Expand Down Expand Up @@ -75,8 +78,14 @@ envlist = {py35,py36,py37,py38}-django{1.11,2.1,2.2}
[testenv]
extras = test
commands =
pytest
pytest {posargs}
deps =
django1.11: Django>=1.11,<2
django2.1: Django>=2.1,<2.2
django2.2: Django>=2.2,<2.3

[testenv:lint]
extras = lint
commands =
pyflakes src/webmention tests
black --check src/webmention tests
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.