Skip to content

Commit 66349ad

Browse files
committed
enabled black and pylint
1 parent 08ca9c3 commit 66349ad

File tree

4 files changed

+180
-51
lines changed

4 files changed

+180
-51
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"python.pythonPath": "/home/dan/.local/share/virtualenvs/100daysofcode-with-python-course-DLJsdqoU/bin/python",
3+
"python.linting.pylintEnabled": true,
4+
"python.linting.enabled": true
5+
}

Pipfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7+
black = "*"
8+
pylint = "*"
79

810
[packages]
911
jupyter = "*"
@@ -23,3 +25,6 @@ PyGithub = "*"
2325

2426
[requires]
2527
python_version = "3.7"
28+
29+
[pipenv]
30+
allow_prereleases = true

Pipfile.lock

Lines changed: 160 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

days/01-03-datetimes/stopwatch.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,18 @@ def stopwatch():
1010

1111

1212
def main():
13-
while True:
14-
print('::Stopwatch App::\nCommands: Start - Quit')
15-
selection = input('Enter a command: \n').lower()
16-
if selection == 'quit':
17-
break
18-
elif selection == 'start':
13+
while True:
14+
print("::Stopwatch App::\nCommands: Start - Quit")
15+
selection = input("Enter a command: \n").lower()
16+
17+
if selection == "quit":
18+
break
19+
elif selection == "start":
1920
timer = stopwatch()
20-
print('Stopwatch stopped with a total time of {}\n'.format(timer))
21+
print("Stopwatch stopped with a total time of {}\n".format(timer))
2122
else:
22-
print('Not a command\n')
23+
print("Not a command\n")
2324

2425

2526
if __name__ == "__main__":
26-
main()
27+
main()

0 commit comments

Comments
 (0)