diff --git a/.github/workflows/backend_lint.yml b/.github/workflows/backend_lint.yml new file mode 100644 index 0000000..5c6cae5 --- /dev/null +++ b/.github/workflows/backend_lint.yml @@ -0,0 +1,33 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: "[CI] Backend / Lint" + +on: + workflow_dispatch: +# push: +# branches: [ master ] +# pull_request: + + +jobs: + backend_lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install flake8 + python -m pip install pipenv + # if [ -f Pipfile ]; then pipenv install; fi + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics diff --git a/.github/workflows/frontend_lint.yml b/.github/workflows/frontend_lint.yml new file mode 100644 index 0000000..728d2c0 --- /dev/null +++ b/.github/workflows/frontend_lint.yml @@ -0,0 +1,33 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: "[CI] Frontend / Lint" + +on: + push: + branches: [ master ] + pull_request: + +jobs: + frontend_lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2.0.0 + with: + fetch-depth: 1 + + - uses: pnpm/action-setup@v2.1.0 + with: + version: 6.0.2 + working-directory: ./frontend + + - name: Install dependencies + working-directory: ./frontend + run: | + pnpm install + + - name: Lint + working-directory: ./frontend + run: | + pnpm run lint \ No newline at end of file diff --git a/frontend/src/routes/account/password-reset.svelte b/frontend/src/routes/account/password-reset.svelte index 007ebdc..edb13e0 100644 --- a/frontend/src/routes/account/password-reset.svelte +++ b/frontend/src/routes/account/password-reset.svelte @@ -1,4 +1,4 @@ - - {#await getUser()} - + {:then user} -
-
-
+
+
+
Profile image of {user.username}
@@ -135,9 +135,9 @@ />