diff options
author | Ganesh Kathiresan <ganesh3597@gmail.com> | 2021-03-07 11:02:02 +0530 |
---|---|---|
committer | Ganesh Kathiresan <ganesh3597@gmail.com> | 2021-03-07 11:18:25 +0530 |
commit | eb9bc0e8e564f39c7f9167b731ed12b21f5205a7 (patch) | |
tree | 35a48632e3806c90b3d6df292b2efa65a205c9c0 | |
parent | 11cfa1c942ce2ed3d0e08ab50eb1612bb51ec60e (diff) | |
download | numpy-eb9bc0e8e564f39c7f9167b731ed12b21f5205a7.tar.gz |
MAINT: Replaced master with main
-rwxr-xr-x | runtests.py | 4 | ||||
-rw-r--r-- | tools/linter.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/runtests.py b/runtests.py index 68a52115b..5885d2df6 100755 --- a/runtests.py +++ b/runtests.py @@ -31,7 +31,7 @@ Generate C code coverage listing under build/lcov/: Run lint checks. Provide target branch name or `uncommitted` to check before committing: - $ python runtests.py --lint master + $ python runtests.py --lint main $ python runtests.py --lint uncommitted """ @@ -664,7 +664,7 @@ def check_lint(lint_args): sys.exit(1) uncommitted = lint_args == "uncommitted" - branch = "master" if uncommitted else lint_args + branch = "main" if uncommitted else lint_args DiffLinter(branch).run_lint(uncommitted) diff --git a/tools/linter.py b/tools/linter.py index f51a8848b..2952e91ed 100644 --- a/tools/linter.py +++ b/tools/linter.py @@ -62,7 +62,7 @@ class DiffLinter: if __name__ == '__main__': parser = ArgumentParser() - parser.add_argument("--branch", type=str, default='master', + parser.add_argument("--branch", type=str, default='main', help="The branch to diff against") parser.add_argument("--uncommitted", action='store_true', help="Check only uncommitted changes") |