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
Arch update - 20.10
#953
Arch update - 20.10
#953
Conversation
catalyst/core/callbacks/exception.py
Outdated
def on_exception(self, runner: IRunner): | ||
"""@TODO: Docs. Contribution is welcome.""" | ||
def on_exception(self, runner: IRunner) -> None: | ||
"""Exception handle hook. |
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.
[pep8] reported by reviewdog 🐶
DAR401 Missing exception(s) in Raises section: -r exception
catalyst/utils/loaders.py
Outdated
from catalyst.registry import SAMPLER | ||
from catalyst.utils import get_rank, merge_dicts, set_global_seed | ||
|
||
from typing import Dict, Union # isort:skip |
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.
[pep8] reported by reviewdog 🐶
F811 redefinition of unused 'Dict' from line 1
catalyst/callbacks/exception.py
Outdated
def on_exception(self, runner: IRunner): | ||
"""@TODO: Docs. Contribution is welcome.""" | ||
def on_exception(self, runner: IRunner) -> None: | ||
"""Exception handle hook. |
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.
[pep8] reported by reviewdog 🐶
DAR401 Missing exception(s) in Raises section: -r exception
catalyst/settings.py
Outdated
@@ -338,11 +338,15 @@ def parse(self) -> dict: | |||
return config | |||
|
|||
|
|||
settings = Settings.parse() | |||
SETTINGS = Settings.parse() | |||
setattr(SETTINGS, "IS_GIT_AVAILABLE", IS_GIT_AVAILABLE) |
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.
[pep8] reported by reviewdog 🐶
B010 Do not call setattr with a constant attribute value, it is not any safer than normal property access.
catalyst/settings.py
Outdated
settings = Settings.parse() | ||
SETTINGS = Settings.parse() | ||
setattr(SETTINGS, "IS_GIT_AVAILABLE", IS_GIT_AVAILABLE) | ||
setattr(SETTINGS, "IS_XLA_AVAILABLE", IS_XLA_AVAILABLE) |
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.
[pep8] reported by reviewdog 🐶
B010 Do not call setattr with a constant attribute value, it is not any safer than normal property access.
catalyst/settings.py
Outdated
SETTINGS = Settings.parse() | ||
setattr(SETTINGS, "IS_GIT_AVAILABLE", IS_GIT_AVAILABLE) | ||
setattr(SETTINGS, "IS_XLA_AVAILABLE", IS_XLA_AVAILABLE) | ||
setattr(SETTINGS, "IS_PRUNING_AVAILABLE", IS_PRUNING_AVAILABLE) |
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.
[pep8] reported by reviewdog 🐶
B010 Do not call setattr with a constant attribute value, it is not any safer than normal property access.
catalyst/settings.py
Outdated
setattr(SETTINGS, "IS_GIT_AVAILABLE", IS_GIT_AVAILABLE) | ||
setattr(SETTINGS, "IS_XLA_AVAILABLE", IS_XLA_AVAILABLE) | ||
setattr(SETTINGS, "IS_PRUNING_AVAILABLE", IS_PRUNING_AVAILABLE) | ||
setattr(SETTINGS, "IS_QUANTIZATION_AVAILABLE", IS_QUANTIZATION_AVAILABLE) |
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.
[pep8] reported by reviewdog 🐶
B010 Do not call setattr with a constant attribute value, it is not any safer than normal property access.
mask = utils.mimread( | ||
mask_name, rootpath=self.rootpath, clip_range=self.clip | ||
) | ||
mask = mimread(mask_name, rootpath=self.rootpath, clip_range=self.clip) |
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.
[pep8] reported by reviewdog 🐶
F821 undefined name 'mimread'
catalyst/core/runner.py
Outdated
scheduler, | ||
device, | ||
) = utils.process_components( | ||
(model, criterion, optimizer, scheduler, device,) = process_components( |
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.
[pep8] reported by reviewdog 🐶
C819 trailing comma prohibited
This pull request is now in conflicts. @Scitator, could you fix it? 🙏 |
This pull request is now in conflicts. @Scitator, could you fix it? 🙏 |
SchedulerCallback, | ||
TensorboardLogger, | ||
ValidationManagerCallback, | ||
) | ||
from catalyst.dl.experiment.config import ConfigExperiment | ||
from catalyst import registry |
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.
[pep8] reported by reviewdog 🐶
I001 isort found an import in the wrong position
catalyst/settings.py
Outdated
setattr(SETTINGS, "IS_GIT_AVAILABLE", IS_GIT_AVAILABLE) # noqa: B010 | ||
setattr(SETTINGS, "IS_XLA_AVAILABLE", IS_XLA_AVAILABLE) # noqa: B010 | ||
setattr(SETTINGS, "IS_PRUNING_AVAILABLE", IS_PRUNING_AVAILABLE) # noqa: B010 | ||
setattr( |
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.
[pep8] reported by reviewdog 🐶
B010 Do not call setattr with a constant attribute value, it is not any safer than normal property access.
catalyst/experiments/experiment.py
Outdated
@@ -1,35 +1,37 @@ | |||
from typing import Any, Dict, Iterable, List, Mapping, Tuple, Union | |||
from typing import Any, Dict, Iterable, List, Mapping, Tuple, Union, TYPE_CHECKING |
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.
[pep8] reported by reviewdog 🐶
I001 isort found an import in the wrong position
catalyst/experiments/experiment.py
Outdated
@@ -1,35 +1,37 @@ | |||
from typing import Any, Dict, Iterable, List, Mapping, Tuple, Union | |||
from typing import Any, Dict, Iterable, List, Mapping, Tuple, Union, TYPE_CHECKING |
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.
[pep8] reported by reviewdog 🐶
E501 line too long (82 > 79 characters)
catalyst/callbacks/exception.py
Outdated
runner: experiment runner | ||
|
||
Raises: | ||
Exception: if during exception handling, |
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.
[pep8] reported by reviewdog 🐶
DAR402 Excess exception(s) in Raises section: +r Exception
Before submitting
catalyst-make-codestyle && catalyst-check-codestyle
(pip install -U catalyst-codestyle
).make check-docs
?Description
Related Issue
Type of Change
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.