-
Notifications
You must be signed in to change notification settings - Fork 122
SRC/API/PYTHON: add pylint checks in CI #658
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
roiedanino
wants to merge
33
commits into
ai-dynamo:main
Choose a base branch
from
roiedanino:pylint-ci
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
84f51a2
PYPROJECT.TOML: added pylint configuration
roiedanino 070cdde
SRC/API/PYTHON: fix pylint warnings in src, examples and tests
roiedanino f5c7827
EXAMPLES/PYTHON: fixed formatting
roiedanino f221647
EXAMPLES/PYTHON: added missing copyrights, mypy config
roiedanino f7ca214
PYPROJECT.TOML: True -> true
roiedanino 88159e7
EXAMPLES/PYTHON: added blank line
roiedanino f3e932d
SRC/API/PYTHON: changed backends param type to Optional
roiedanino 502dd48
SRC/API/PYTHON: formatting
roiedanino 14015bd
.PRE-COMMIT-CONFIG.YAML: added pylint to pre-commit
roiedanino 63d2dd4
.PRE-COMMIT-CONFIG: formatting
roiedanino c89f3fb
PYPROJECT.TOML: fix pylint import issues in CI
roiedanino ae9ec1d
.GITLAB: fixed import issue
roiedanino 82dc3a9
PYPROJECT.TOML: reverted ignore-modules
roiedanino 30c0e93
EXAMPLES/PYTHON: changed relative import in examples to examples.python
roiedanino 92d4c7c
EXAMPLES/PYTHON: fixed import order
roiedanino 8f4c735
EXAMPLES/PYTHON: fixed import order again
roiedanino ac1c86a
.PRE_COMMIT-CONFIG: add . to dependencies for pylint
roiedanino b167c98
.PRE_COMMIT-CONFIG: add source roots to dependencies for pylint
roiedanino c8087a0
.PRE_COMMIT-CONFIG: fix import issues in pylint - another try
roiedanino 67d1866
.PRE-COMMIT-CONFIG: pip install before running pre-commit to recogniz…
roiedanino ce5b87c
.GITHUB/WORKFLOWS: trying adding nixl to the path without installing it
roiedanino 4299b06
.GITHUB/WORKFLOWS: trying adding nixl to PYTHONPATH
roiedanino b8436a9
.GITLAB: add pylint checks in test_python.sh instead as nixl package …
roiedanino 264c505
EXAMPLES/PYTHON: fixed import issues
roiedanino 97d0d49
TEST/PYTHON: added __init__.py files to fix imports
roiedanino 2a5f5d4
EXAMPLES/PYTHON: fixed import issues
roiedanino e3496ae
EXAMPLES/PYTHON: import ordering
roiedanino 748bfce
Merge branch 'main' into pylint-ci-fixed
roiedanino eaaa862
EXAMPLES/PYTHON: fixed formatting
roiedanino 99603fb
EXAMPLES/PYTHON: fixed more pylint issues from upstream
roiedanino 76334e8
EXAMPLES/PYTHON: formatting
roiedanino 79ea489
EXAMPLE/PYTHON: removed a blank line
roiedanino 2f9ad2d
.GITLAB: fixed paths on pylint execution
roiedanino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why need to run with python -m ?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise relative imports won't work -
from . import util
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems wait_for_transfer_completion is used only in 2 place so maybe just keep it as is without introducing utilities module?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we would need to import the other module in the same way to avoid that code duplication. If you meant leaving the code duplication as it was, I don't think we want to suppress those pylint warnings.
Maybe I'll try using full path import instead