Skip to content

Commit f437f92

Browse files
authoredApr 2, 2024
Enable ruff INP001 rule (TheAlgorithms#11346)
* Enable ruff INP001 rule * Fix * Fix * Fix * Fix * Fix
1 parent f8cdb3e commit f437f92

File tree

15 files changed

+3
-4
lines changed

15 files changed

+3
-4
lines changed
 

‎data_structures/arrays/__init__.py

Whitespace-only changes.

‎data_structures/hashing/tests/__init__.py

Whitespace-only changes.

‎digital_image_processing/morphological_operations/__init__.py

Whitespace-only changes.

‎electronics/__init__.py

Whitespace-only changes.

‎electronics/circular_convolution.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def circular_convolution(self) -> list[float]:
3737
using matrix method
3838
3939
Usage:
40-
>>> import circular_convolution as cc
41-
>>> convolution = cc.CircularConvolution()
40+
>>> convolution = CircularConvolution()
4241
>>> convolution.circular_convolution()
4342
[10, 10, 6, 14]
4443

‎fractals/__init__.py

Whitespace-only changes.

‎geometry/__init__.py

Whitespace-only changes.

‎greedy_methods/__init__.py

Whitespace-only changes.

‎linear_algebra/src/gaussian_elimination_pivoting/__init__.py

Whitespace-only changes.

‎linear_programming/__init__.py

Whitespace-only changes.

‎maths/numerical_analysis/__init__.py

Whitespace-only changes.

‎maths/special_numbers/__init__.py

Whitespace-only changes.

‎neural_network/activation_functions/__init__.py

Whitespace-only changes.

‎neural_network/activation_functions/mish.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"""
88

99
import numpy as np
10-
from softplus import softplus
10+
11+
from .softplus import softplus
1112

1213

1314
def mish(vector: np.ndarray) -> np.ndarray:

‎pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ lint.ignore = [ # `ruff rule S101` for a description of that rule
66
"EM101", # Exception must not use a string literal, assign to variable first
77
"EXE001", # Shebang is present but file is not executable" -- FIX ME
88
"G004", # Logging statement uses f-string
9-
"INP001", # File `x/y/z.py` is part of an implicit namespace package. Add an `__init__.py`. -- FIX ME
109
"PGH003", # Use specific rule codes when ignoring type issues -- FIX ME
1110
"PLC1901", # `{}` can be simplified to `{}` as an empty string is falsey
1211
"PLW060", # Using global for `{name}` but no assignment is done -- DO NOT FIX

0 commit comments

Comments
 (0)
Please sign in to comment.