Skip to content

Commit cf138c9

Browse files
flake8 linting
1 parent c5ca889 commit cf138c9

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

.github/ISSUE_TEMPLATE/New_Script.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ assignees: ''
1414

1515
- Use comments and docstrings
1616
- Make folder if project contains more than one file
17-
- Lint your code using pylint
17+
- Lint your code using flake8
1818

1919
**I want to:** (Please add/remove options as per requirement)
2020

.github/ISSUE_TEMPLATE/improve_script.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ assignees: ''
1515

1616
- Use comments and docstrings
1717
- Make folder if project contains more than one file
18-
- Lint your code using pylint
18+
- Lint your code using flake8
1919

2020
**I want to:** (Please add/remove options as per requirement)
2121

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mention your changes here
1717

1818

1919
- [ ] PR is regarding Code
20-
- [x] I am following clean code and Documentation and my code is well linted with pylint.
20+
- [x] I am following clean code and Documentation and my code is well linted with flake8.
2121
- [ ] I am using external libraries and I have created requirements.txt in my project folder
2222
- [ ] Script is tested and running perfectly fine on my system
2323

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Please note we have a [code of conduct](CODE_OF_CONDUCT.md), please follow it in
1313
## Pull Request Process
1414

1515
1. **Only make PRs for the Issue assigned to you**
16-
2. Lint your code using pylint
16+
2. Lint your code using [flake8](https://flake8.pycqa.org/en/latest/)
1717
3. Use PR Template
1818
4. Read [CONTRIBUTE](CONTRIBUTE/README.md)
1919

Math/area _of_triangle.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Three sides of triangle
2-
side_a = float(input('Enter first side: '))
3-
side_b = float(input('Enter second side: '))
4-
side_c = float(input('Enter third side: '))
5-
6-
# calculate the semi-perimeter
7-
semi_perimeter = (side_a + side_b + side_c) / 2
2+
side_a = float(input('Enter first side: '))
3+
side_b = float(input('Enter second side: '))
4+
side_c = float(input('Enter third side: '))
85

9-
area = (semi_perimeter * (semi_perimeter - side_a) * (semi_perimeter - side_b)\
10-
* (semi_perimeter - side_c)) ** 0.5
11-
print('The area of the triangle is:', area)
6+
# calculate the semi-perimeter
7+
semi_perimeter = (side_a + side_b + side_c) / 2
128

9+
area = (semi_perimeter * (semi_perimeter - side_a) * (semi_perimeter - side_b)
10+
* (semi_perimeter - side_c)) ** 0.5
11+
print('The area of the triangle is:', area)

0 commit comments

Comments
 (0)