-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Update ruff to version 0.5.2 and workflows update #892
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
8881309
Update tests.yml
Smartappli bf02583
Update pypi.yml
Smartappli 2c0758d
Update tests.yml
Smartappli cff056f
bugfix
Smartappli 74126f1
Update dependabot.yml
Smartappli cd75c03
Update ruff to version 0.5.2
Smartappli 52f2ab8
Update setup.py
Smartappli f041114
Update requirements.txt
Smartappli 1d9187a
Update ruff to version 0.5.2
Smartappli 40f936a
Create ruff.toml
Smartappli 07cc707
Update ruff.toml
Smartappli 4737a09
Update ruff.toml
Smartappli 62a0b29
Update ruff.toml
Smartappli b4e702e
revert
Smartappli ded77f7
Align torchvision version with test version
Smartappli d6e4802
Update tests.yml
Smartappli 78e3811
Update ruff.toml
Smartappli d8a3bb2
Update ruff.toml
Smartappli 01a9486
revert
Smartappli 256136b
revert
Smartappli 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
torchvision>=0.5.0 | ||
torchvision>=0.10.0 | ||
pretrainedmodels==0.7.4 | ||
efficientnet-pytorch==0.7.1 | ||
timm==0.9.7 | ||
|
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,61 @@ | ||
# Exclude a variety of commonly ignored directories. | ||
Smartappli marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".git-rewrite", | ||
".hg", | ||
".ipynb_checkpoints", | ||
".mypy_cache", | ||
".nox", | ||
".pants.d", | ||
".pyenv", | ||
".pytest_cache", | ||
".pytype", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
".vscode", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"site-packages", | ||
"venv", | ||
] | ||
|
||
# Same as Black. | ||
line-length = 88 | ||
Smartappli marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
indent-width = 4 | ||
|
||
# Assume Python 3.8 | ||
target-version = "py38" | ||
|
||
[lint] | ||
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | ||
select = ["E", "F", "I", "PERF", "PL", "RUF", "S", "SIM", "UP", "W"] | ||
ignore = [] | ||
|
||
# Allow fix for all enabled rules (when `--fix`) is provided. | ||
fixable = ["ALL"] | ||
unfixable = [] | ||
|
||
# Allow unused variables when underscore-prefixed. | ||
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
|
||
[format] | ||
# Like Black, use double quotes for strings. | ||
quote-style = "double" | ||
|
||
# Like Black, indent with spaces, rather than tabs. | ||
indent-style = "space" | ||
|
||
# Like Black, respect magic trailing commas. | ||
skip-magic-trailing-comma = false | ||
|
||
# Like Black, automatically detect the appropriate line ending. | ||
line-ending = "auto" |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
URL = "https://github.com/qubvel/segmentation_models.pytorch" | ||
EMAIL = "[email protected]" | ||
AUTHOR = "Pavel Iakubovskii" | ||
REQUIRES_PYTHON = ">=3.7.0" | ||
REQUIRES_PYTHON = ">=3.9.0" | ||
VERSION = None | ||
|
||
# The rest you shouldn't have to touch too much :) | ||
|
@@ -35,7 +35,7 @@ | |
REQUIRED = [] | ||
|
||
# What packages are optional? | ||
EXTRAS = {"test": ["pytest", "mock", "ruff==0.4.6"]} | ||
EXTRAS = {"test": ["pytest", "mock", "ruff==0.5.2"]} | ||
|
||
# Import the README and use it as the long-description. | ||
# Note: this will only work if 'README.md' is present in your MANIFEST.in file! | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.