Move more files to src
This commit is contained in:
parent
2e5e0f793a
commit
d1cd80950e
4
.flake8
4
.flake8
|
@ -4,5 +4,5 @@ exclude =
|
|||
__init__.py,
|
||||
*cache*,
|
||||
venv/,
|
||||
manage.py,
|
||||
network_inventory/settings/*
|
||||
src/manage.py,
|
||||
src/network_inventory/settings/*
|
||||
|
|
6
Makefile
6
Makefile
|
@ -7,7 +7,7 @@ run: setup
|
|||
( \
|
||||
find . -name __pycache__ -o -name "*.pyc" -delete; \
|
||||
sudo iptables -I INPUT -p tcp --dport 8000 -j ACCEPT; \
|
||||
cd src/
|
||||
cd src/; \
|
||||
python manage.py runserver 0.0.0.0:8000; \
|
||||
)
|
||||
|
||||
|
@ -15,7 +15,7 @@ run: setup
|
|||
setup:
|
||||
( \
|
||||
docker-compose -f docker-compose-development.yml up -d; \
|
||||
cd src/
|
||||
cd src/; \
|
||||
if [ -f .second_run ]; then \
|
||||
sleep 2; \
|
||||
python manage.py collectstatic --noinput; \
|
||||
|
@ -72,7 +72,7 @@ init:
|
|||
.PHONY: test
|
||||
test:
|
||||
( \
|
||||
pytest --ds=network_inventory.settings.ram_test -nauto --nomigrations --cov=. --cov-report=html; \
|
||||
pytest --ds=network_inventory.settings.ram_test -nauto --nomigrations --cov=./src --cov-report=html ./src; \
|
||||
)
|
||||
|
||||
.PHONY: debug
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
(final: prev: {
|
||||
inventoryEnv = prev.poetry2nix.mkPoetryEnv {
|
||||
projectDir = ./.;
|
||||
editablePackageSources = {
|
||||
inventory = ./src;
|
||||
};
|
||||
};
|
||||
inventoryPackage = prev.poetry2nix.mkPoetryApplication {
|
||||
projectDir = ./.;
|
||||
|
|
Loading…
Reference in New Issue