Skip to content

Commit ba791ab

Browse files
authored
Move localsettings.template.py and manage_autocompletion.sh to evap/development/ (#2402)
1 parent d96cf9c commit ba791ab

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

deployment/localsettings.template.py evap/development/localsettings.template.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1+
# noqa: N999
2+
13
from fractions import Fraction
24
from pathlib import Path
35

46
from django.utils.safestring import mark_safe
57

68
DATABASES = {
7-
'default': {
8-
'ENGINE': 'django.db.backends.postgresql',
9-
'NAME': 'evap',
10-
'USER': 'evap',
11-
'PASSWORD': 'evap',
9+
"default": {
10+
"ENGINE": "django.db.backends.postgresql",
11+
"NAME": "evap",
12+
"USER": "evap",
13+
"PASSWORD": "evap",
1214
# Absolute path to use unix domain socket
13-
'HOST': Path("./data/").resolve(),
14-
'CONN_MAX_AGE': 600,
15+
"HOST": Path("./data/").resolve(),
16+
"CONN_MAX_AGE": 600,
1517
}
1618
}
1719

File renamed without changes.

nix/services.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
exit 0
6666
fi
6767
set -x
68-
cp deployment/localsettings.template.py evap/localsettings.py
68+
cp evap/development/localsettings.template.py evap/localsettings.py
6969
sed -i -e "s/\$SECRET_KEY/$(head /dev/urandom | LC_ALL=C tr -dc A-Za-z0-9 | head -c 32)/" evap/localsettings.py
7070
git submodule update --init
7171
./manage.py compilemessages --locale de

nix/shell.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let
44
# When running a nix shell, XDG_DATA_DIRS will be populated so that bash_completion can (lazily) find this completion script
55
evap-managepy-completion = pkgs.runCommand "evap-managepy-completion" { } ''
66
mkdir -p "$out/share/bash-completion/completions"
7-
install ${../deployment/manage_autocompletion.sh} "$out/share/bash-completion/completions/manage.py.bash"
7+
install ${../evap/development/manage_autocompletion.sh} "$out/share/bash-completion/completions/manage.py.bash"
88
'';
99

1010
workspace = uv2nix.lib.workspace.loadWorkspace { inherit workspaceRoot; };

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ pep8-naming.extend-ignore-names = ["assert*", "*Formset"] # custom assert metho
110110

111111
[tool.ruff.lint.per-file-ignores]
112112
"**/migrations/*.py" = ["N806"] # migrations have model classes as local variables, we use PascalCase for these
113-
"deployment/*.py" = ["INP001"] # not intended for direct import
114113

115114
[tool.ruff.format]
116115
exclude = ["**/urls.py", "**/migrations/*.py"]

0 commit comments

Comments
 (0)