Loading .pre-commit-config.yaml +1 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ repos: rev: 19.10b0 hooks: - id: black exclude: &excluded_pythonscripts pythonrc.py|rabbitmqadmin args: - | --line-length=79 Loading @@ -33,7 +32,6 @@ repos: rev: 3.7.9 hooks: - id: flake8 exclude: *excluded_pythonscripts args: - |- --max-line-length=79 Loading @@ -43,10 +41,9 @@ repos: rev: v2.4.4 hooks: - id: pylint exclude: *excluded_pythonscripts args: - |- --disable=R0801 --disable=R0801,E0401 - repo: https://www.shore.co.il/git/docker-pre-commit rev: v0.3.0 hooks: Loading docker-compose.yml +10 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,13 @@ services: image: rabbitmq:3.8-management-alpine ports: - 15672:15672 server: build: context: ./ command: ["flask", "run", "--port", "8080", "--host", "0.0.0.0"] environment: FLASK_APP: waldorf/server healthcheck: test: ["CMD-SHELL", "wget http://localhost:8080/ping || exit 1"] ports: - 8080:8080 waldorf/server.py 0 → 100644 +10 −0 Original line number Diff line number Diff line """Dummy web server using Flask.""" from flask import Flask app = Flask(__name__) # pylint: disable=invalid-name @app.route("/ping") def ping(): """Healthcheck.""" return "pong" Loading
.pre-commit-config.yaml +1 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ repos: rev: 19.10b0 hooks: - id: black exclude: &excluded_pythonscripts pythonrc.py|rabbitmqadmin args: - | --line-length=79 Loading @@ -33,7 +32,6 @@ repos: rev: 3.7.9 hooks: - id: flake8 exclude: *excluded_pythonscripts args: - |- --max-line-length=79 Loading @@ -43,10 +41,9 @@ repos: rev: v2.4.4 hooks: - id: pylint exclude: *excluded_pythonscripts args: - |- --disable=R0801 --disable=R0801,E0401 - repo: https://www.shore.co.il/git/docker-pre-commit rev: v0.3.0 hooks: Loading
docker-compose.yml +10 −0 Original line number Diff line number Diff line Loading @@ -14,3 +14,13 @@ services: image: rabbitmq:3.8-management-alpine ports: - 15672:15672 server: build: context: ./ command: ["flask", "run", "--port", "8080", "--host", "0.0.0.0"] environment: FLASK_APP: waldorf/server healthcheck: test: ["CMD-SHELL", "wget http://localhost:8080/ping || exit 1"] ports: - 8080:8080
waldorf/server.py 0 → 100644 +10 −0 Original line number Diff line number Diff line """Dummy web server using Flask.""" from flask import Flask app = Flask(__name__) # pylint: disable=invalid-name @app.route("/ping") def ping(): """Healthcheck.""" return "pong"