Skip to content

Commit

Permalink
Enable modern numpy checks (#5044)
Browse files Browse the repository at this point in the history
* Enable modern numpy checks

We can prevent using deprecated np features with this

Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>

* npy002

Signed-off-by: Justin Chu <justinchu@microsoft.com>

---------

Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchu@microsoft.com>
  • Loading branch information
justinchuby committed Mar 27, 2023
1 parent ab18701 commit 915b4c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ select = [
"W", # pycodestyle
"B", # flake8-bugbear
"N", # pep8-naming
"NPY", # modern numpy
"YTT", # flake8-2020
"RUF", # Ruff-specific rules
"TID252", # Relative imports
Expand All @@ -79,6 +80,7 @@ ignore = [
"N803", # Argument casing
"N806", # Relax: Variable name in function should be lowercase
"N999", # Module names
"NPY002", # np.random.Generator may not be preferred in all cases
"SIM102", # We don't perfer always combining if branches
"SIM108", # We don't encourage ternary operators
"SIM114", # Don't combine if branches for debugability
Expand Down

0 comments on commit 915b4c7

Please sign in to comment.