From eccba3e17e5f9584f52ed600352d450b39714cc2 Mon Sep 17 00:00:00 2001 From: Ollie <46904826+ollie-iterators@users.noreply.github.com> Date: Thu, 9 Feb 2023 15:50:30 -0500 Subject: Add example for deprecated-module (#8247) Co-authored-by: Pierre Sassoulas --- doc/data/messages/d/deprecated-module/bad.py | 3 +++ doc/data/messages/d/deprecated-module/details.rst | 1 - doc/data/messages/d/deprecated-module/good.py | 3 ++- doc/data/messages/d/deprecated-module/pylintrc | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 doc/data/messages/d/deprecated-module/bad.py delete mode 100644 doc/data/messages/d/deprecated-module/details.rst create mode 100644 doc/data/messages/d/deprecated-module/pylintrc (limited to 'doc/data/messages/d') diff --git a/doc/data/messages/d/deprecated-module/bad.py b/doc/data/messages/d/deprecated-module/bad.py new file mode 100644 index 000000000..fd17f1345 --- /dev/null +++ b/doc/data/messages/d/deprecated-module/bad.py @@ -0,0 +1,3 @@ +import distutils # [deprecated-module] + +import whatever_you_want # [deprecated-module] diff --git a/doc/data/messages/d/deprecated-module/details.rst b/doc/data/messages/d/deprecated-module/details.rst deleted file mode 100644 index ab8204529..000000000 --- a/doc/data/messages/d/deprecated-module/details.rst +++ /dev/null @@ -1 +0,0 @@ -You can help us make the doc better `by contributing `_ ! diff --git a/doc/data/messages/d/deprecated-module/good.py b/doc/data/messages/d/deprecated-module/good.py index c40beb573..014a76cb5 100644 --- a/doc/data/messages/d/deprecated-module/good.py +++ b/doc/data/messages/d/deprecated-module/good.py @@ -1 +1,2 @@ -# This is a placeholder for correct code for this message. +import setuptools +import whatever_replacement_you_want diff --git a/doc/data/messages/d/deprecated-module/pylintrc b/doc/data/messages/d/deprecated-module/pylintrc new file mode 100644 index 000000000..c72ab2495 --- /dev/null +++ b/doc/data/messages/d/deprecated-module/pylintrc @@ -0,0 +1,3 @@ +[main] +py-version=3.7 +deprecated-modules=whatever_you_want -- cgit v1.2.1