Skip to content

Commit 2e3c65a

Browse files
committed
lint: Remove custom --no-gitlint option.
zulint already has --skip for this. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent c4a78d0 commit 2e3c65a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

tools/lint

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ EXCLUDED_FILES = [
1515
def run() -> None:
1616
parser = argparse.ArgumentParser()
1717
add_default_linter_arguments(parser)
18-
parser.add_argument('--no-gitlint', action='store_true', help='Disable gitlint')
1918
args = parser.parse_args()
2019

2120
linter_config = LinterConfig(args)
@@ -27,10 +26,8 @@ def run() -> None:
2726
description="Static type checker for Python (config: mypy.ini)")
2827
linter_config.external_linter('flake8', ['flake8'], ['py'],
2928
description="Standard Python linter (config: .flake8)")
30-
31-
if not args.no_gitlint:
32-
linter_config.external_linter('gitlint', ['tools/lint-commits'],
33-
description="Git Lint for commit messages")
29+
linter_config.external_linter('gitlint', ['tools/lint-commits'],
30+
description="Git Lint for commit messages")
3431

3532
@linter_config.lint
3633
def custom_py() -> int:

tools/test-static-analysis

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
set -ev
44

5-
tools/lint --no-gitlint
5+
tools/lint --skip=gitlint
66
tools/run-mypy

0 commit comments

Comments
 (0)