summaryrefslogtreecommitdiff
path: root/doc/data
diff options
context:
space:
mode:
authorOllie <46904826+ollie-iterators@users.noreply.github.com>2023-02-09 15:50:30 -0500
committerGitHub <noreply@github.com>2023-02-09 21:50:30 +0100
commiteccba3e17e5f9584f52ed600352d450b39714cc2 (patch)
treef405c740982fc53a1799e4e47d54d1137e2387f1 /doc/data
parentf9d796f21e0619304be4c1a3f1fb6c6578acff3b (diff)
downloadpylint-git-eccba3e17e5f9584f52ed600352d450b39714cc2.tar.gz
Add example for deprecated-module (#8247)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/data')
-rw-r--r--doc/data/messages/d/deprecated-module/bad.py3
-rw-r--r--doc/data/messages/d/deprecated-module/details.rst1
-rw-r--r--doc/data/messages/d/deprecated-module/good.py3
-rw-r--r--doc/data/messages/d/deprecated-module/pylintrc3
4 files changed, 8 insertions, 2 deletions
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 <https://github.com/PyCQA/pylint/issues/5953>`_ !
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