make format
This commit is contained in:
parent
dae7ad1c6a
commit
ad62170e87
5
Makefile
5
Makefile
@ -3,7 +3,10 @@
|
|||||||
test:
|
test:
|
||||||
nix flake check
|
nix flake check
|
||||||
|
|
||||||
# Dev.
|
.PHONY: format
|
||||||
|
format:
|
||||||
|
autopep8 -a -a --recursive --in-place --exclude app/signup/migrations app
|
||||||
|
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
run:
|
run:
|
||||||
app/manage.py runserver
|
app/manage.py runserver
|
||||||
|
@ -59,7 +59,8 @@ INSTALLED_APPS = (['debug_toolbar'] if DEBUG else []) + [
|
|||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = (['debug_toolbar.middleware.DebugToolbarMiddleware'] if DEBUG else []) + [
|
MIDDLEWARE = (
|
||||||
|
['debug_toolbar.middleware.DebugToolbarMiddleware'] if DEBUG else []) + [
|
||||||
'django.middleware.security.SecurityMiddleware',
|
'django.middleware.security.SecurityMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
format = pkgs.runCommand "check-format" {} ''
|
format = pkgs.runCommand "check-format" {} ''
|
||||||
${pkgs.python3Packages.flake8}/bin/flake8 \
|
${pkgs.python3Packages.flake8}/bin/flake8 \
|
||||||
--max-line-length 99 \
|
--max-line-length 99 \
|
||||||
--exclude ${./.}/app/signup/migrations/ ${./.}
|
--exclude ${./.}/app/signup/migrations/ ${./.}/app
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user