Skip to content

Commit

Permalink
chore: small clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nickatnight committed Sep 27, 2021
1 parent 2ce47b7 commit 0d82567
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 178 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,9 @@ EXCLUDED_ROUTES = [
See [here](demo/README.md)

## Development
TODO
This project uses [Poetry](https://python-poetry.org/docs/#osx--linux--bashonwindows-install-instructions) to manage dev environment. Once installed:
1. Clone and `cd` into repo
2. install packages with `poetry install`
3. black `poetry run black .`
4. flake8 `poetry run flake8`
5. test `poetry run coverage run --source=django_spam setup.py test`
4 changes: 3 additions & 1 deletion demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ To run this example, follow these instructions:

poetry run python manage.py runserver
4. Access from the browser at `http://127.0.0.1:8000`
5. Access from the browser at `http://127.0.0.1:8000` to view homepage

6. Visit a `SPAM_ROUTES` eg `http://127.0.0.1:8000/admin/login.asp`
174 changes: 1 addition & 173 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[tool.poetry]
name = "django-spam"
version = "2.0.0"
version = "2.0.1"
description = "Django application that redirects spam bots to '10 hours of' videos"
authors = ["Nick Kelly <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/Tivix/django-spam"
repository = "https://github.com/Tivix/django-spam"

[tool.poetry.dependencies]
python = "^3.9"

[tool.poetry.dev-dependencies]
flake8 = "^3.9.2"
pytest-coverage = "^0.0"
black = "20.8b1"
coverage = "^5.5"

[tool.black]
line-length = 110
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

setup(
name="django_spam",
version="2.0.0",
version="2.0.1",
author="Nick Kelly",
author_email="[email protected]",
url="http://github.com/Tivix/django-spam",
Expand Down

0 comments on commit 0d82567

Please sign in to comment.