From f1e6b725fb69a85903650b98c956bbacbdfdfebd Mon Sep 17 00:00:00 2001 From: "Gunung P. Wibisono" <55311527+gunungpw@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:08:24 +0700 Subject: [PATCH 1/7] add example for `reimported` --- doc/data/messages/r/reimported/bad.py | 2 ++ doc/data/messages/r/reimported/good.py | 1 + 2 files changed, 3 insertions(+) create mode 100644 doc/data/messages/r/reimported/bad.py create mode 100644 doc/data/messages/r/reimported/good.py diff --git a/doc/data/messages/r/reimported/bad.py b/doc/data/messages/r/reimported/bad.py new file mode 100644 index 0000000000..2a8914eb9b --- /dev/null +++ b/doc/data/messages/r/reimported/bad.py @@ -0,0 +1,2 @@ +import re +import re diff --git a/doc/data/messages/r/reimported/good.py b/doc/data/messages/r/reimported/good.py new file mode 100644 index 0000000000..b199df5420 --- /dev/null +++ b/doc/data/messages/r/reimported/good.py @@ -0,0 +1 @@ +import re From bee05b0aa877accc1402ce8bdff0fdf4fae5741d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 6 Apr 2022 02:13:06 +0000 Subject: [PATCH 2/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/data/messages/r/reimported/bad.py | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/data/messages/r/reimported/bad.py b/doc/data/messages/r/reimported/bad.py index 2a8914eb9b..b199df5420 100644 --- a/doc/data/messages/r/reimported/bad.py +++ b/doc/data/messages/r/reimported/bad.py @@ -1,2 +1 @@ import re -import re From 002939272346dad9bc625dbb4d5983020f0ab72a Mon Sep 17 00:00:00 2001 From: "Gunung P. Wibisono" <55311527+gunungpw@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:31:42 +0700 Subject: [PATCH 3/7] Update bad.py fix bad.py --- doc/data/messages/r/reimported/bad.py | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/data/messages/r/reimported/bad.py b/doc/data/messages/r/reimported/bad.py index b199df5420..c9ab065a5b 100644 --- a/doc/data/messages/r/reimported/bad.py +++ b/doc/data/messages/r/reimported/bad.py @@ -1 +1,2 @@ import re +import re # [reimported] From 1cd3a32ff032b36a71f5e1bb978981841c9e1992 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 6 Apr 2022 02:32:38 +0000 Subject: [PATCH 4/7] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/data/messages/r/reimported/bad.py | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/data/messages/r/reimported/bad.py b/doc/data/messages/r/reimported/bad.py index c9ab065a5b..c78272f679 100644 --- a/doc/data/messages/r/reimported/bad.py +++ b/doc/data/messages/r/reimported/bad.py @@ -1,2 +1 @@ -import re import re # [reimported] From 9a5eb758d6a7bdabd9a4a0ebeafa7d72126e2c0d Mon Sep 17 00:00:00 2001 From: "Gunung P. Wibisono" <55311527+gunungpw@users.noreply.github.com> Date: Wed, 6 Apr 2022 15:26:48 +0700 Subject: [PATCH 5/7] exclude bad.py in pre-commit config --- .pre-commit-config.yaml | 1 + doc/data/messages/r/reimported/bad.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51c5b331f3..23168a580b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,6 +37,7 @@ repos: rev: 5.10.1 hooks: - id: isort + exclude: doc/data/messages/r/reimported/bad.py - repo: https://github.com/psf/black rev: 22.3.0 hooks: diff --git a/doc/data/messages/r/reimported/bad.py b/doc/data/messages/r/reimported/bad.py index 2a8914eb9b..c9ab065a5b 100644 --- a/doc/data/messages/r/reimported/bad.py +++ b/doc/data/messages/r/reimported/bad.py @@ -1,2 +1,2 @@ import re -import re +import re # [reimported] From 3bf337ba8281d3a71b828670998c8413884078ff Mon Sep 17 00:00:00 2001 From: "Gunung P. Wibisono" <55311527+gunungpw@users.noreply.github.com> Date: Wed, 6 Apr 2022 15:34:44 +0700 Subject: [PATCH 6/7] Revert "exclude bad.py in pre-commit config" This reverts commit 9a5eb758d6a7bdabd9a4a0ebeafa7d72126e2c0d. --- .pre-commit-config.yaml | 1 - doc/data/messages/r/reimported/bad.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23168a580b..51c5b331f3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,7 +37,6 @@ repos: rev: 5.10.1 hooks: - id: isort - exclude: doc/data/messages/r/reimported/bad.py - repo: https://github.com/psf/black rev: 22.3.0 hooks: diff --git a/doc/data/messages/r/reimported/bad.py b/doc/data/messages/r/reimported/bad.py index c9ab065a5b..2a8914eb9b 100644 --- a/doc/data/messages/r/reimported/bad.py +++ b/doc/data/messages/r/reimported/bad.py @@ -1,2 +1,2 @@ import re -import re # [reimported] +import re From 4423959ab1ab1b662a83d88b6ce5b9d081960250 Mon Sep 17 00:00:00 2001 From: "Gunung P. Wibisono" <55311527+gunungpw@users.noreply.github.com> Date: Wed, 6 Apr 2022 15:37:34 +0700 Subject: [PATCH 7/7] fix bad and precommit config --- .pre-commit-config.yaml | 1 + doc/data/messages/r/reimported/bad.py | 1 + 2 files changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 51c5b331f3..23168a580b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,6 +37,7 @@ repos: rev: 5.10.1 hooks: - id: isort + exclude: doc/data/messages/r/reimported/bad.py - repo: https://github.com/psf/black rev: 22.3.0 hooks: diff --git a/doc/data/messages/r/reimported/bad.py b/doc/data/messages/r/reimported/bad.py index c78272f679..c9ab065a5b 100644 --- a/doc/data/messages/r/reimported/bad.py +++ b/doc/data/messages/r/reimported/bad.py @@ -1 +1,2 @@ +import re import re # [reimported]