Skip to content

Commit a8cfb98

Browse files
committed
formatting
1 parent a9b53c7 commit a8cfb98

24 files changed

+112
-90
lines changed
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'
@@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen.
2424
If applicable, add screenshots to help explain your problem.
2525

2626
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3031

3132
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3638

3739
**Additional context**
3840
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/workflows/codeql.yml

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "main", "develop" ]
16+
branches: ["main", "develop"]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ "main" ]
19+
branches: ["main"]
2020
schedule:
21-
- cron: '40 16 * * 6'
21+
- cron: "40 16 * * 6"
2222

2323
jobs:
2424
analyze:
@@ -38,45 +38,44 @@ jobs:
3838
strategy:
3939
fail-fast: false
4040
matrix:
41-
language: [ 'javascript-typescript', 'python' ]
41+
language: ["javascript-typescript", "python"]
4242
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
4343
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
4444
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
4545
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4646

4747
steps:
48-
- name: Checkout repository
49-
uses: actions/checkout@v3
48+
- name: Checkout repository
49+
uses: actions/checkout@v3
5050

51-
# Initializes the CodeQL tools for scanning.
52-
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@v2
54-
with:
55-
languages: ${{ matrix.language }}
56-
# If you wish to specify custom queries, you can do so here or in a config file.
57-
# By default, queries listed here will override any specified in a config file.
58-
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# Initializes the CodeQL tools for scanning.
52+
- name: Initialize CodeQL
53+
uses: github/codeql-action/init@v2
54+
with:
55+
languages: ${{ matrix.language }}
56+
# If you wish to specify custom queries, you can do so here or in a config file.
57+
# By default, queries listed here will override any specified in a config file.
58+
# Prefix the list here with "+" to use these queries and those in the config file.
5959

60-
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
61-
# queries: security-extended,security-and-quality
60+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
61+
# queries: security-extended,security-and-quality
6262

63+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
64+
# If this step fails, then you should remove it and run the build manually (see below)
65+
- name: Autobuild
66+
uses: github/codeql-action/autobuild@v2
6367

64-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
65-
# If this step fails, then you should remove it and run the build manually (see below)
66-
- name: Autobuild
67-
uses: github/codeql-action/autobuild@v2
68+
# ℹ️ Command-line programs to run using the OS shell.
69+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6870

69-
# ℹ️ Command-line programs to run using the OS shell.
70-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
71+
# If the Autobuild fails above, remove it and uncomment the following three lines.
72+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
7173

72-
# If the Autobuild fails above, remove it and uncomment the following three lines.
73-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
74+
# - run: |
75+
# echo "Run, Build Application using script"
76+
# ./location_of_script_within_repo/buildscript.sh
7477

75-
# - run: |
76-
# echo "Run, Build Application using script"
77-
# ./location_of_script_within_repo/buildscript.sh
78-
79-
- name: Perform CodeQL Analysis
80-
uses: github/codeql-action/analyze@v2
81-
with:
82-
category: "/language:${{matrix.language}}"
78+
- name: Perform CodeQL Analysis
79+
uses: github/codeql-action/analyze@v2
80+
with:
81+
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Source repository: https://github.com/actions/dependency-review-action
66
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7-
name: 'Dependency Review'
7+
name: "Dependency Review"
88
on: [pull_request]
99

1010
permissions:
@@ -14,7 +14,7 @@ jobs:
1414
dependency-review:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: 'Checkout Repository'
17+
- name: "Checkout Repository"
1818
uses: actions/checkout@v3
19-
- name: 'Dependency Review'
19+
- name: "Dependency Review"
2020
uses: actions/dependency-review-action@v3

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,22 @@ name: Docker
77

88
on:
99
schedule:
10-
- cron: '33 10 * * *'
10+
- cron: "33 10 * * *"
1111
push:
12-
branches: [ "main" ]
12+
branches: ["main"]
1313
# Publish semver tags as releases.
14-
tags: [ 'v*.*.*' ]
14+
tags: ["v*.*.*"]
1515
pull_request:
16-
branches: [ "main" ]
16+
branches: ["main"]
1717

1818
env:
1919
# Use docker.io for Docker Hub if empty
2020
REGISTRY: ghcr.io
2121
# github.repository as <account>/<repo>
2222
IMAGE_NAME: ${{ github.repository }}
2323

24-
2524
jobs:
2625
build:
27-
2826
runs-on: ubuntu-latest
2927
permissions:
3028
contents: read
@@ -43,7 +41,7 @@ jobs:
4341
if: github.event_name != 'pull_request'
4442
uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1
4543
with:
46-
cosign-release: 'v2.1.1'
44+
cosign-release: "v2.1.1"
4745

4846
# Set up BuildKit Docker container builder to be able to build
4947
# multi-platform images and export cache

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ name: Python application
55

66
on:
77
push:
8-
branches: [ "main" ]
8+
branches: ["main"]
99
pull_request:
10-
branches: [ "main" ]
10+
branches: ["main"]
1111

1212
permissions:
1313
contents: read

app/auth/forms.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import pytz
22
from flask_wtf import FlaskForm
33
from wtforms import BooleanField, PasswordField, SelectField, StringField
4-
from wtforms.validators import Email, EqualTo, InputRequired, Length, Optional, ValidationError
4+
from wtforms.validators import (
5+
Email,
6+
EqualTo,
7+
InputRequired,
8+
Length,
9+
Optional,
10+
ValidationError,
11+
)
512

613
from app.models import User
714

app/auth/routes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
from app import db
99
from app.auth import bp
1010
from app.auth.forms import LoginForm, ResetPasswordForm, SignupForm, TokenRequestForm
11-
from app.main.email import send_activation_email, send_confirmation_email, send_reset_password_email
11+
from app.main.email import (
12+
send_activation_email,
13+
send_confirmation_email,
14+
send_reset_password_email,
15+
)
1216
from app.models import User
1317

1418

app/static/site.webmanifest

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"name": "Mash Time Tracker",
3-
"short_name": "Mash Time Tracker",
4-
"description": "Simple, quick and easy time tracking.",
5-
"icons": [
6-
{
7-
"src": "/static/android-chrome-192x192.png",
8-
"sizes": "192x192",
9-
"type": "image/png"
10-
},
11-
{
12-
"src": "/static/android-chrome-512x512.png",
13-
"sizes": "512x512",
14-
"type": "image/png"
15-
}
16-
],
17-
"theme_color": "#343a40",
18-
"background_color": "#2196f3",
19-
"display": "standalone",
20-
"start_url": "/entries/",
21-
"scope": "/",
22-
"shortcuts": [
23-
{
24-
"name": "Start / stop now",
25-
"url": "/entries/auto",
26-
"description": "Start or stop a time entry now"
27-
}
28-
]
2+
"name": "Mash Time Tracker",
3+
"short_name": "Mash Time Tracker",
4+
"description": "Simple, quick and easy time tracking.",
5+
"icons": [
6+
{
7+
"src": "/static/android-chrome-192x192.png",
8+
"sizes": "192x192",
9+
"type": "image/png"
10+
},
11+
{
12+
"src": "/static/android-chrome-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png"
15+
}
16+
],
17+
"theme_color": "#343a40",
18+
"background_color": "#2196f3",
19+
"display": "standalone",
20+
"start_url": "/entries/",
21+
"scope": "/",
22+
"shortcuts": [
23+
{
24+
"name": "Start / stop now",
25+
"url": "/entries/auto",
26+
"description": "Start or stop a time entry now"
27+
}
28+
]
2929
}

app/static/src/js/cookie-banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@
4848
cookieBanner.hidden = true;
4949
});
5050
}
51-
})();
51+
})();

0 commit comments

Comments
 (0)