Skip to content

Ryantwt07 patch 1 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
ignore = W191
25 changes: 25 additions & 0 deletions build/lib/matrix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
def matrix_2_2_input():
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Missing function or method docstring (view)

Rule Severity Message-id Module Obj
missing-function-docstring convention C0116 matrix matrix_2_2_input

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Missing module docstring (view)

Rule Severity Message-id Module Obj
missing-module-docstring convention C0114 matrix -

You can close this issue if no need to fix it. Learn more.

cmd = int(input('''
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

Enter 1 for 2 X 2 Matrix
>>> '''))
if cmd == 1:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

n11 = float(input("Enter the element of the 1st column and 1st row of the 1st matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

n12 = float(input("Enter the element of the 2nd column and the 1st row of the 1st matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

n21 = float(input("Enter the element of the 1st column and 2nd row of the 1st matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

n22 = float(input("Enter the element of the 2nd column and the 2nd row of the 1st matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

m11 = float(input("Enter the element of the 1st column and 1st row of 2nd matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

m12 = float(input("Enter the element of the 2nd column and 1st row of 2nd matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

m21 = float(input("Enter the element of the 2nd column and 1st row of 2nd matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

m22 = float(input("Enter the element of the 2nd column and 2nd row of 2nd matrix: "))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

else:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

print("Invalid Request")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.


def matrix_2_2_calculate():
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Missing function or method docstring (view)

Rule Severity Message-id Module Obj
missing-function-docstring convention C0116 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

X = [[n11, n12], [n21, n22]]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Variable name "X" doesn't conform to snake_case naming style (view)

Rule Severity Message-id Module Obj
invalid-name convention C0103 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Undefined variable 'n11' (view)

Rule Severity Message-id Module Obj
undefined-variable error E0602 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Undefined variable 'n12' (view)

Rule Severity Message-id Module Obj
undefined-variable error E0602 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Undefined variable 'n21' (view)

Rule Severity Message-id Module Obj
undefined-variable error E0602 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Undefined variable 'n22' (view)

Rule Severity Message-id Module Obj
undefined-variable error E0602 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

Y = [[m11, m12], [m21, m22]]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Variable name "Y" doesn't conform to snake_case naming style (view)

Rule Severity Message-id Module Obj
invalid-name convention C0103 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

result = [[0, 0], [0, 0]]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

for i in range(len(x)):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

for j in range(len(X[0])):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

result[i][j] = X[i][j] + Y[i][j]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 3 spaces, expected 12 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

for r in result:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 1 spaces, expected 4 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Variable name "r" doesn't conform to snake_case naming style (view)

Rule Severity Message-id Module Obj
invalid-name convention C0103 matrix matrix_2_2_calculate

You can close this issue if no need to fix it. Learn more.

print(r)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Pylint] Bad indentation. Found 2 spaces, expected 8 (view)

Rule Severity Message-id Module Obj
bad-indentation warning W0311 matrix -

You can close this issue if no need to fix it. Learn more.