-
Notifications
You must be signed in to change notification settings - Fork 530
[REFACTOR] Drop Python 2 support and update pylint #838
Conversation
See pylint-dev/pylint#2694 for details. http://ci.mxnet.io/blue/organizations/jenkins/GluonNLP-py3-master-gpu-integration/detail/PR-836/1/ for an example how the bug affects us.
Codecov Report
|
Codecov Report
@@ Coverage Diff @@
## master #838 +/- ##
==========================================
- Coverage 90.43% 90.18% -0.26%
==========================================
Files 66 66
Lines 6348 6345 -3
==========================================
- Hits 5741 5722 -19
- Misses 607 623 +16
|
Job PR-838/1 is complete. |
Job PR-838/3 is complete. |
Job PR-838/4 is complete. |
@@ -32,12 +32,10 @@ | |||
|
|||
class _WordEmbeddingEvaluationFunction(HybridBlock): # pylint: disable=abstract-method | |||
"""Base class for word embedding evaluation functions.""" | |||
pass |
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.
Why should we remove the pass
here?
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.
It's not required. Lint fails (pylint 2 introduced a new rule)
Fixed in master branch by dmlc#838 Fix does not apply here as it would require dropping py2.
* Fix Vocab with unknown_token remapped to != 0 via token_to_idx arg * Add test * Update test_pretrained_bert_models Confirmed that vocab[vocab.unknown_token] still == 0 for all models created prior to the flexible vocab PR. Ie: - book_corpus_wiki_en_uncased - wiki_multilingual_uncased - openwebtext_book_corpus_wiki_en_uncased - wiki_multilingual_cased - wiki_cn_cased * Use cuda 10.1 on CI * Disable false positive pylint warnings Fixed in master branch by #838 Fix does not apply here as it would require dropping py2. * Don't test against v1.6 beta and v1.4.1 at the same time. Test v0.7x branch only on v1.4 due to incompatible doctest output on both mxnet versions * Disable test_finetune_chinese_inference due to DNS error
Description
Drop Python 2 as per #721.
This allows updating pylint of which our current version emits false positive E1111 with #836.
Also fixes #839.
Checklist
Essentials
Changes