mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-10 00:11:44 +00:00
(#12136) [linter] Do not promote migration of Version
class (yet)
* [linter] Remove Version rule * change docs
This commit is contained in:
@@ -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`
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user