Skip to content

Commit 21ae57c

Browse files
authored
Remove testing for Python 3.4 (#388)
* Removes testing from CI for Python 3.4 * Adds lint disabling for new linter checks that have been added.
1 parent 703f8a2 commit 21ae57c

File tree

7 files changed

+8
-9
lines changed

7 files changed

+8
-9
lines changed

.github/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ if [[ ${PYTHON_VERSION} == 2.7 ]]; then
3939
fire/inspectutils_test.py \
4040
fire/test_components_py3.py;
4141
elif [[ ${PYTHON_VERSION} == 3.7 ]]; then
42-
pytype;
42+
pytype -x fire/test_components_py3.py;
4343
fi
4444

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [2.7, 3.4, 3.5, 3.7, 3.8, 3.9]
10+
python-version: [2.7, 3.5, 3.7, 3.8, 3.9]
1111

1212
steps:
1313
# Checkout the repo.

fire/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def import_from_file_path(path):
8080
spec.loader.exec_module(module) # pytype: disable=attribute-error
8181

8282
else:
83-
import imp # pylint: disable=g-import-not-at-top,import-outside-toplevel
83+
import imp # pylint: disable=g-import-not-at-top,import-outside-toplevel,deprecated-module
8484
module = imp.load_source(module_name, path)
8585

8686
return module, module_name

fire/custom_descriptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,15 @@ def GetStringTypeDescription(obj, available_space, line_length):
137137

138138
def GetSummary(obj, available_space, line_length):
139139
obj_type_name = type(obj).__name__
140-
if obj_type_name in CUSTOM_DESC_SUM_FN_DICT.keys():
140+
if obj_type_name in CUSTOM_DESC_SUM_FN_DICT:
141141
return CUSTOM_DESC_SUM_FN_DICT.get(obj_type_name)[0](obj, available_space,
142142
line_length)
143143
return None
144144

145145

146146
def GetDescription(obj, available_space, line_length):
147147
obj_type_name = type(obj).__name__
148-
if obj_type_name in CUSTOM_DESC_SUM_FN_DICT.keys():
148+
if obj_type_name in CUSTOM_DESC_SUM_FN_DICT:
149149
return CUSTOM_DESC_SUM_FN_DICT.get(obj_type_name)[1](obj, available_space,
150150
line_length)
151151
return None

fire/main_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ class MainModuleFileTest(testutils.BaseTestCase):
4444

4545
def setUp(self):
4646
super(MainModuleFileTest, self).setUp()
47-
self.file = tempfile.NamedTemporaryFile(suffix='.py')
47+
self.file = tempfile.NamedTemporaryFile(suffix='.py') # pylint: disable=consider-using-with
4848
self.file.write(b'class Foo:\n def double(self, n):\n return 2 * n\n')
4949
self.file.flush()
5050

51-
self.file2 = tempfile.NamedTemporaryFile()
51+
self.file2 = tempfile.NamedTemporaryFile() # pylint: disable=consider-using-with
5252

5353
def testFileNameFire(self):
5454
# Confirm that the file is correctly imported and doubles the number.

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ enable=indexing-exception,old-raise-syntax
3232
# Disable the message, report, category or checker with the given id(s). You
3333
# can either give multiple identifier separated by comma (,) or put this option
3434
# multiple time.
35-
disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,file-ignored,wrong-import-order,useless-object-inheritance,no-else-return,super-with-arguments,raise-missing-from
35+
disable=design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,file-ignored,wrong-import-order,useless-object-inheritance,no-else-return,super-with-arguments,raise-missing-from,consider-using-f-string,unspecified-encoding
3636

3737

3838
[REPORTS]

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
'Programming Language :: Python :: 2',
6767
'Programming Language :: Python :: 2.7',
6868
'Programming Language :: Python :: 3',
69-
'Programming Language :: Python :: 3.4',
7069
'Programming Language :: Python :: 3.5',
7170
'Programming Language :: Python :: 3.6',
7271
'Programming Language :: Python :: 3.7',

0 commit comments

Comments
 (0)