Skip to content

Commit fb13c0f

Browse files
George Khouryevilmooncake
authored andcommitted
fix(project): fix formatting issues
1 parent 38ee5fc commit fb13c0f

File tree

8 files changed

+30
-10
lines changed

8 files changed

+30
-10
lines changed

.github/codeql-config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: "CodeQL config"
2+
3+
paths-ignore:
4+
- tests.py
5+
- 'snappass/static/bootstrap/**'
6+
- 'snappass/static/clipboardjs/**'
7+
- 'snappass/static/fontawesome/**'
8+
- 'snappass/static/jquery/**'

.samplr.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
######################
2+
# samplr configuration
3+
######################
4+
5+
# Want to include a header that indicates this is an autogenerated file?
6+
autogencomments: true
7+
8+
# regex matches for filenames that you want to include or exclude from
9+
# the samplr generation. Be careful to indent using spaces.
10+
# For a file to be sampled, it has to meet both requirements: be included and not excluded.
11+
excludes:
12+
- \.sample # It's a good idea to exclude all *.sample* files, otherwise it will behave recursively
13+
- \.py$ # Most of the times, the code files won't need samples
14+
includes:
15+
- ^config # Matches files like ./config/setup.yml or ./configuration/script.sh
16+
- \.yml$ # Matches all .yml files in the project
17+
- Dockerfile # Matches all Dockerfile in the project

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ To check if a password exists, send a HEAD request to ``/api/v2/passwords/<token
201201
$ curl --head http://localhost:5000/api/v2/passwords/snappassbedf19b161794fd288faec3eba15fa41~hHnILpQ50ZfJc3nurDfHCb_22rBr5gGEya68e_cZOrY%3D
202202

203203
If :
204-
- the passwork_key is valid
204+
- the passwork_key is valid
205205
- the password :
206206
- exists,
207-
- has not been read
207+
- has not been read
208208
- is not expired
209209

210210
Then the API will return a 200 (OK) response like so:
@@ -228,7 +228,7 @@ Otherwise, the API will return a 404 (Not Found) response like so:
228228
Content-Type: text/html; charset=utf-8
229229
Content-Length: 0
230230
Connection: close
231-
231+
232232

233233
Read a password
234234
"""""""""""""""
@@ -240,10 +240,10 @@ To read a password, send a GET request to ``/api/v2/passwords/<password_key>``,
240240
$ curl -X GET http://localhost:5000/api/v2/passwords/snappassbedf19b161794fd288faec3eba15fa41~hHnILpQ50ZfJc3nurDfHCb_22rBr5gGEya68e_cZOrY%3D
241241

242242
If :
243-
- the token is valid
243+
- the token is valid
244244
- the password :
245245
- exists
246-
- has not been read
246+
- has not been read
247247
- is not expired
248248

249249
Then the API will return a 200 (OK) with a JSON response containing the password :

babel.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@
77
# (venv) $ pybabel init -i messages.pot -d snappass/translations -l <language_code>
88
[python: snappass/**.py]
99
[jinja2: snappass/templates/**.html]
10-

snappass/translations/de/LC_MESSAGES/messages.po

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,3 @@ msgstr "Eine Stunde"
128128
#: snappass/templates/set_password.html:26
129129
msgid "Generate URL"
130130
msgstr "URL generieren"
131-

snappass/translations/es/LC_MESSAGES/messages.po

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,3 @@ msgstr "Hora"
126126
#: snappass/templates/set_password.html:26
127127
msgid "Generate URL"
128128
msgstr "Generar URL"
129-

snappass/translations/fr/LC_MESSAGES/messages.po

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,3 @@ msgstr "Une heure"
124124
#: snappass/templates/set_password.html:26
125125
msgid "Generate URL"
126126
msgstr "Générer l'URL"
127-

snappass/translations/nl/LC_MESSAGES/messages.po

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,3 @@ msgstr "Uur"
125125
#: snappass/templates/set_password.html:26
126126
msgid "Generate URL"
127127
msgstr "URL genereren"
128-

0 commit comments

Comments
 (0)