Skip to content

Commit 552ba51

Browse files
himani2411Himani Deshpande
authored andcommitted
Disable code-duplication pylint code-checks (#2481)
* Disable `code-duplication` pylint code-checks * Adding condition to the test as it fails because we're installing IntelHPC stuff at runtime. --------- Co-authored-by: Himani Deshpande <[email protected]>
1 parent 86b9e34 commit 552ba51

File tree

9 files changed

+28
-3
lines changed

9 files changed

+28
-3
lines changed

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ disable=raw-checker-failed,
6262
unused-import, # handled by flake8
6363
no-else-return, # A complete if else block can improve readability even with returns in the body
6464
wrong-import-order,
65-
protected-access
65+
protected-access,
66+
fixme
6667

6768

6869
# Enable the message, report, category or checker with the given id(s). You can
@@ -380,4 +381,3 @@ min-public-methods=2
380381
# Exceptions that will emit a warning when being caught. Defaults to
381382
# "Exception".
382383
overgeneral-exceptions=Exception
383-

cookbooks/aws-parallelcluster-computefleet/files/clusterstatusmgtd/clusterstatusmgtd.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# limitations under the License.
1212

1313
# pylint: disable=W0719
14+
15+
# FIXME: Fix Code Duplication
16+
# pylint: disable=R0801
1417
import functools
1518
import json
1619
import logging

cookbooks/aws-parallelcluster-environment/files/default/ec2_udev_rules/ec2_dev_2_volid.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# FIXME: Fix Code Duplication
2+
# pylint: disable=R0801
3+
14
import configparser
25
import os
36
import re

cookbooks/aws-parallelcluster-environment/files/default/ec2_udev_rules/manageVolume.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# pylint: disable=C0103
22
# pylint: disable=W0719
33
# This file should name manage_volume.py by convention
4+
5+
# FIXME: Fix Code Duplication
6+
# pylint: disable=R0801
7+
48
import argparse
59
import configparser
610
import os

cookbooks/aws-parallelcluster-platform/test/controls/intel_hpc_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
end
2525

2626
control 'tag:config_intel_hpc_enough_space_on_root_volume' do
27-
only_if { !instance.custom_ami? }
27+
only_if { !instance.custom_ami? && (os_properties.centos7? && os_properties.x86?) }
2828

2929
describe 'at least 10 GB of free space on root volume' do
3030
subject { bash("sudo -u #{node['cluster']['cluster_user']} df --block-size GB --output=avail / | tail -n1 | cut -d G -f1") }

cookbooks/aws-parallelcluster-slurm/files/default/config_slurm/scripts/health_check_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14+
# FIXME: Fix Code Duplication
15+
# pylint: disable=R0801
16+
1417
import argparse
1518
import logging
1619
import os

cookbooks/aws-parallelcluster-slurm/files/default/head_node_slurm/slurm/pcluster_slurm_config_generator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
# or in the "LICENSE.txt" file accompanying this file.
1010
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1111
# See the License for the specific language governing permissions and limitations under the License.
12+
13+
# FIXME: Fix Code Duplication
14+
# pylint: disable=R0801
15+
1216
import argparse
1317
import functools
1418
import json

test/unit/clusterstatusmgtd/test_clusterstatusmgtd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
# or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
99
# OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
1010
# limitations under the License.
11+
12+
# FIXME: Fix Code Duplication
13+
# pylint: disable=R0801
14+
1115
import os
1216
from datetime import datetime, timedelta, timezone
1317
from types import SimpleNamespace

test/unit/dcv/test_dcv_authenticator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
# or in the "LICENSE.txt" file accompanying this file.
1010
# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied.
1111
# See the License for the specific language governing permissions and limitations under the License.
12+
13+
# FIXME: Fix Code Duplication
14+
# pylint: disable=R0801
15+
1216
import json
1317
import string
1418
import time

0 commit comments

Comments
 (0)