Skip to content
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

Merged
merged 33 commits into from Oct 12, 2020
Merged

Arch update - 20.10 #953

merged 33 commits into from Oct 12, 2020

Conversation

Scitator
Copy link
Member

@Scitator Scitator commented Oct 6, 2020

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contribution guide?
  • Did you check the code style? catalyst-make-codestyle && catalyst-check-codestyle (pip install -U catalyst-codestyle).
  • Did you make sure to update the docs? We use Google format for all the methods and classes.
  • Did you check the docs with make check-docs?
  • Did you write any new necessary tests?
  • Did you add your new functionality to the docs?
  • Did you update the CHANGELOG?
  • You can use 'Login as guest' to see Teamcity build logs.

Description

Related Issue

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to 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.

def on_exception(self, runner: IRunner):
"""@TODO: Docs. Contribution is welcome."""
def on_exception(self, runner: IRunner) -> None:
"""Exception handle hook.
Copy link

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

from catalyst.registry import SAMPLER
from catalyst.utils import get_rank, merge_dicts, set_global_seed

from typing import Dict, Union # isort:skip
Copy link

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

def on_exception(self, runner: IRunner):
"""@TODO: Docs. Contribution is welcome."""
def on_exception(self, runner: IRunner) -> None:
"""Exception handle hook.
Copy link

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

@@ -338,11 +338,15 @@ def parse(self) -> dict:
return config


settings = Settings.parse()
SETTINGS = Settings.parse()
setattr(SETTINGS, "IS_GIT_AVAILABLE", IS_GIT_AVAILABLE)

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.

settings = Settings.parse()
SETTINGS = Settings.parse()
setattr(SETTINGS, "IS_GIT_AVAILABLE", IS_GIT_AVAILABLE)
setattr(SETTINGS, "IS_XLA_AVAILABLE", IS_XLA_AVAILABLE)

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.

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)

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.

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)

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)

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'

scheduler,
device,
) = utils.process_components(
(model, criterion, optimizer, scheduler, device,) = process_components(

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

@mergify
Copy link

mergify bot commented Oct 11, 2020

This pull request is now in conflicts. @Scitator, could you fix it? 🙏

@mergify
Copy link

mergify bot commented Oct 11, 2020

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

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

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(

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.

@@ -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

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

@@ -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

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)

runner: experiment runner

Raises:
Exception: if during exception handling,

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

@Scitator Scitator merged commit 1f13840 into master Oct 12, 2020
@mergify mergify bot deleted the arch/arch-update branch October 12, 2020 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants