Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/pipelinit.python.lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated with pipelinit 0.1.0-rc.3
# Generated with pipelinit 0.1.0
# https://pipelinit.com/
name: Lint Python
on:
Expand All @@ -18,4 +18,6 @@ jobs:

- run: python -m pip install pip flake8 black
- run: black . --check
# Adapts Flake8 to run with the Black formatter, using the '--ignore' flag to skip incompatibilities errors
# Reference: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html?highlight=other%20tools#id1
- run: flake8 --ignore E203,E501,W503 .
4 changes: 2 additions & 2 deletions .github/workflows/pipelinit.python.test.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Generated with pipelinit 0.1.0-rc.3
# Generated with pipelinit 0.1.0
# https://pipelinit.com/
name: Test Python
on:
pull_request:
paths:
- "**.py"
jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/pipelinit.shell.lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated with pipelinit 0.1.0
# https://pipelinit.com/
name: Lint Shell
on:
pull_request:
paths:
- "**.sh"
- "**.bash"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'api.settings')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "api.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand All @@ -18,5 +18,5 @@ def main():
execute_from_command_line(sys.argv)


if __name__ == '__main__':
if __name__ == "__main__":
main()
11 changes: 11 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

echo "$"

if [ -d './directory' }; than
echo 'sure!' < start
fif

echo "Starting test server"

python manage.py runserver