Skip to content

Commit c8af392

Browse files
author
George Khoury
committed
fix(project): fix formatting issues
1 parent bddf035 commit c8af392

File tree

23 files changed

+746
-734
lines changed

23 files changed

+746
-734
lines changed

.github/codeql-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "CodeQL config"
22

3-
paths-ignore:
3+
paths-ignore:
44
- tests.py
55
- 'snappass/static/bootstrap/**'
66
- 'snappass/static/clipboardjs/**'

.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/static/bootstrap/css/bootstrap-theme.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snappass/static/bootstrap/css/bootstrap-theme.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snappass/static/bootstrap/css/bootstrap-theme.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snappass/static/bootstrap/css/bootstrap.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snappass/static/bootstrap/css/bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

snappass/static/bootstrap/css/bootstrap.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)