File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 1
1
import argparse
2
2
import json
3
3
import sys
4
-
5
- import jsonschema
6
4
from pathlib import Path
7
5
6
+ import jsonschema
8
7
from jsonschema import Draft7Validator
9
8
10
9
@@ -14,7 +13,6 @@ class JsonSchemaNamespace(argparse.Namespace):
14
13
15
14
16
15
def create_argument_parser () -> argparse .ArgumentParser :
17
- """Create and configure argument parser."""
18
16
parser = argparse .ArgumentParser (
19
17
description = "Checking a json file using json-schema" ,
20
18
formatter_class = argparse .RawDescriptionHelpFormatter ,
@@ -42,7 +40,6 @@ def create_argument_parser() -> argparse.ArgumentParser:
42
40
43
41
44
42
def main () -> None :
45
- """Main entry point."""
46
43
parser = create_argument_parser ()
47
44
args = parser .parse_args (namespace = JsonSchemaNamespace ())
48
45
You can’t perform that action at this time.
0 commit comments