From 8636659ca9754f20000423058f7c247977f94413 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Fri, 2 Dec 2022 17:31:31 +0100 Subject: [PATCH] Update docs to the same port as the reset script + remove pre-commit pylint (#1464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Adrià Casajús --- .pre-commit-config.yaml | 4 ---- CONTRIBUTING.md | 2 +- scripts/reset_local_db.sh | 2 +- scripts/reset_test_db.sh | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f5e153e7..60c43ee1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,3 @@ repos: - id: djlint-jinja files: '.*\.html' entry: djlint --reformat - - repo: https://github.com/PyCQA/pylint - rev: v2.14.4 - hooks: - - id: pylint diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c622af42..07910ab2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -91,7 +91,7 @@ DB_URI=postgresql://myuser:mypassword@localhost:35432/simplelogin Run the postgres database: ```bash -docker run -e POSTGRES_PASSWORD=mypassword -e POSTGRES_USER=myuser -e POSTGRES_DB=simplelogin -p 35432:5432 postgres:13 +docker run -e POSTGRES_PASSWORD=mypassword -e POSTGRES_USER=myuser -e POSTGRES_DB=simplelogin -p 15432:5432 postgres:13 ``` To run the server: diff --git a/scripts/reset_local_db.sh b/scripts/reset_local_db.sh index cf8e4f0f..422c2a8b 100755 --- a/scripts/reset_local_db.sh +++ b/scripts/reset_local_db.sh @@ -1,6 +1,6 @@ #!/bin/sh -export DB_URI=postgresql://myuser:mypassword@localhost:35432/simplelogin +export DB_URI=postgresql://myuser:mypassword@localhost:15432/simplelogin echo 'drop schema public cascade; create schema public;' | psql $DB_URI poetry run alembic upgrade head diff --git a/scripts/reset_test_db.sh b/scripts/reset_test_db.sh index a24edfe2..25466010 100755 --- a/scripts/reset_test_db.sh +++ b/scripts/reset_test_db.sh @@ -1,6 +1,6 @@ #!/bin/sh -export DB_URI=postgresql://myuser:mypassword@localhost:35432/test +export DB_URI=postgresql://myuser:mypassword@localhost:15432/test echo 'drop schema public cascade; create schema public;' | psql $DB_URI poetry run alembic upgrade head