Skip to content

Commit 610b2f5

Browse files
authored
Merge pull request #13 from easy-as-python/move-to-src
Move implementation to src/ directory
2 parents 717b392 + 103cebc commit 610b2f5

File tree

12 files changed

+13
-7
lines changed

12 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,5 @@ stages:
2121
jobs:
2222
include:
2323
- stage: lint
24-
install:
25-
- pip install black pyflakes
2624
script:
27-
- pyflakes webmention tests
28-
- black --check webmention tests
25+
- tox -e lint

setup.cfg

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,24 @@ classifiers =
2929
Programming Language :: Python :: 3.7
3030

3131
[options]
32+
package_dir = =src
3233
packages = find:
3334
install_requires =
3435
Django>=1.8.2
3536
requests>=2.7.0
3637

3738
[options.packages.find]
38-
exclude =
39-
tests*
39+
where = src
4040

4141
[options.extras_require]
4242
test =
4343
coverage
4444
pytest
4545
pytest-cov
4646
pytest-django
47+
lint =
48+
pyflakes
49+
black
4750

4851
[coverage:run]
4952
branch = True
@@ -75,8 +78,14 @@ envlist = {py35,py36,py37,py38}-django{1.11,2.1,2.2}
7578
[testenv]
7679
extras = test
7780
commands =
78-
pytest
81+
pytest {posargs}
7982
deps =
8083
django1.11: Django>=1.11,<2
8184
django2.1: Django>=2.1,<2.2
8285
django2.2: Django>=2.2,<2.3
86+
87+
[testenv:lint]
88+
extras = lint
89+
commands =
90+
pyflakes src/webmention tests
91+
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.

0 commit comments

Comments
 (0)