From afad78343a9f9228edca6fc17fd9293957ed12cd Mon Sep 17 00:00:00 2001 From: Akuli Date: Sun, 19 Sep 2021 22:38:23 +0300 Subject: [PATCH] change prints in scripts/create_baseline_stubs.py (#6051) --- scripts/create_baseline_stubs.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/create_baseline_stubs.py b/scripts/create_baseline_stubs.py index e00cb8766..ba0c7b377 100644 --- a/scripts/create_baseline_stubs.py +++ b/scripts/create_baseline_stubs.py @@ -161,12 +161,11 @@ def main() -> None: print("\nDone!\n\nSuggested next steps:") print(f" 1. Manually review the generated stubs in {stub_dir}") - print(" 2. Run stubtest to test the generated stubs against runtime definitions") - print(f' 3. Run "flake8 {stub_dir}" to check code style') - print(f' 4. Run "mypy {stub_dir}" to check for errors') - print(f' 5. Run "black {stub_dir}" (if you\'ve made code changes)') - print(" 6. Create branch in the typeshed repo and commit the stubs (and other changes)") - print(" 7. Create typeshed PR") + print(f' 2. Run "MYPYPATH={stub_dir} python3 -m mypy.stubtest {package}" to check the stubs against runtime') + print(f' 3. Run "mypy {stub_dir}" to check for errors') + print(f' 4. Run "black {stub_dir}" and "isort {stub_dir}" (if you\'ve made code changes)') + print(f' 5. Run "flake8 {stub_dir}" to check for e.g. unused imports') + print(" 6. Commit the changes on a new branch and create a typeshed PR") if __name__ == "__main__":