Commit 6411a9fe authored by Johan Bloemberg's avatar Johan Bloemberg

Add code quality suite.

parent cf3dd1fb
......@@ -4,3 +4,5 @@
configuration.php
db.sqlite3
*.py[co]
.tox
*.egg-info
# Requirement
- Python
- Python3
# Quickstart
pip install -r requirements.txt
./manage.py migrate
./manage.py loaddata fail/fixtures/testdata.yaml
./manage.py createsuperuser
./manage.py runserver
Now login at: http://127.0.0.1:8000/admin/
# Code quality
This project sticks to default pycodestyle/pyflakes configuration to maintain code quality. To run code quality checks run:
tox
To make life easier you can use `autopep8` before running `tox` to automatically fix most style issues:
autopep8 -ri fail
# Direnv
This project uses [direnv](https://direnv.net/) to manage Python environment. Optionally install direnv and run `direnv allow` to enable.
[pycodestyle]
max-line-length=120
[pylama:pycodestyle]
max_line_length = 100
from setuptools import find_packages, setup
setup(
name='failmap-admin',
version='0.1',
packages=find_packages('admin', 'fail'),
)
[tox]
envlist = lint
[testenv:lint]
basepython = python3
deps = pylama
commands = pylama fail admin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment