Enable ruff INP001 rule (#11346)

* Enable ruff INP001 rule

* Fix

* Fix

* Fix

* Fix

* Fix
This commit is contained in:
Maxim Smolskiy 2024-04-02 22:13:56 +03:00 committed by GitHub
parent f8cdb3e948
commit f437f92279
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 3 additions and 4 deletions

View File

0
electronics/__init__.py Normal file
View File

View File

@ -37,8 +37,7 @@ class CircularConvolution:
using matrix method
Usage:
>>> import circular_convolution as cc
>>> convolution = cc.CircularConvolution()
>>> convolution = CircularConvolution()
>>> convolution.circular_convolution()
[10, 10, 6, 14]

0
fractals/__init__.py Normal file
View File

0
geometry/__init__.py Normal file
View File

View File

View File

View File

View File

View File

@ -7,7 +7,8 @@ https://en.wikipedia.org/wiki/Rectifier_(neural_networks)#Mish
"""
import numpy as np
from softplus import softplus
from .softplus import softplus
def mish(vector: np.ndarray) -> np.ndarray:

View File

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