(#12136) [linter] Do not promote migration of Version class (yet)

* [linter] Remove Version rule

* change docs
This commit is contained in:
Javier G. Sogo
2022-08-11 08:42:41 +02:00
committed by GitHub
parent 3701e02e9e
commit 0e97dc5b59
2 changed files with 2 additions and 3 deletions

View File

@@ -43,7 +43,6 @@ Here is a list of different imports and their new equivalent (note that the inte
| conans.tools.get | [conan.tools.files.get](https://docs.conan.io/en/latest/reference/conanfile/tools/files/downloads.html#conan-tools-files-get) |
| conans.tools.cross_building | [conan.tools.build.cross_building](https://docs.conan.io/en/latest/reference/conanfile/tools/build.html#conan-tools-build-cross-building) |
| conans.tools.rmdir | [conan.tools.files.rmdir](https://docs.conan.io/en/latest/reference/conanfile/tools/files/basic.html#conan-tools-files-rmdir) |
| conans.tools.Version | [conan.tools.scm.Version](https://docs.conan.io/en/latest/reference/conanfile/tools/scm/other.html#version) |
# Disable linter for `test_v1_*/conanfile.py`

View File

@@ -22,8 +22,8 @@ def transform_tools(module):
del module.locals['cross_building']
if 'rmdir' in module.locals:
del module.locals['rmdir']
if 'Version' in module.locals:
del module.locals['Version']
#if 'Version' in module.locals:
# del module.locals['Version']
astroid.MANAGER.register_transform(