[do not merge] (second attempt) apply scientific-python template to enable CI/CD #8
Annotations
2 errors and 10 warnings
Run PyLint:
HD_BET/data_loading.py#L3
No name 'resize' in module 'skimage.transform'
|
Run PyLint
Process completed with exit code 1.
|
Run PyLint:
HD_BET/config.py#L8
Class 'BaseConfig' inherits from object, can be safely removed from bases in python3
|
Run PyLint:
HD_BET/config.py#L4
standard import "abc.abstractmethod" should be placed before third party imports "numpy", "torch" and first party import "HD_BET.utils.SetNetworkToVal"
|
Run PyLint:
HD_BET/network_architecture.py#L2
Use 'from torch import nn' instead
|
Run PyLint:
HD_BET/run.py#L6
standard import "imp" should be placed before third party imports "torch", "numpy", "SimpleITK" and first party imports "HD_BET.data_loading.load_and_preprocess", "HD_BET.predict_case.predict_case_3D_net"
|
Run PyLint:
HD_BET/run.py#L8
standard import "os" should be placed before third party imports "torch", "numpy", "SimpleITK" and first party imports "HD_BET.data_loading.load_and_preprocess", "HD_BET.predict_case.predict_case_3D_net", "HD_BET.utils.postprocess_prediction"
|
Run PyLint:
HD_BET/data_loading.py#L45
Consider iterating the dictionary directly instead of calling .keys()
|
Run PyLint:
HD_BET/utils.py#L55
Class 'SetNetworkToVal' inherits from object, can be safely removed from bases in python3
|
Run PyLint:
HD_BET/utils.py#L61
Consider merging these isinstance calls to isinstance(module, (nn.Dropout, nn.Dropout2d, nn.Dropout3d))
|
Run PyLint:
HD_BET/utils.py#L63
Consider merging these isinstance calls to isinstance(module, (nn.BatchNorm1d, nn.BatchNorm2d, nn.BatchNorm3d, nn.InstanceNorm1d, nn.InstanceNorm2d, nn.InstanceNorm3d))
|
Run PyLint:
HD_BET/utils.py#L6
standard import "os" should be placed before third party imports "torch", "torch.nn", "numpy", "skimage.morphology.label"
|
Loading