├── .gitignore ├── .travis.yml ├── LICENSE.txt ├── MANIFEST ├── README.md ├── mastool ├── __init__.py ├── extension.py ├── helpers.py ├── practices.py ├── samples │ ├── a_equals_b.py │ ├── assign_builtin.py │ ├── assign_builtin_unpack.py │ ├── comprehension.py │ ├── comprehension_as_statement.py │ ├── dict_as_arg.py │ ├── dict_with_vals_as_arg.py │ ├── dictcomp_as_arg.py │ ├── dictomp_as_arg.py │ ├── double_generic_exception.py │ ├── double_generic_silent.py │ ├── for_in_y.py │ ├── for_in_y_keys.py │ ├── from_import.py │ ├── function_def.py │ ├── generator.py │ ├── generator_as_statement.py │ ├── generic_exception.py │ ├── generic_silent.py │ ├── genexp_as_arg.py │ ├── if_equals_bool.py │ ├── if_expression.py │ ├── if_expression_as_statement.py │ ├── if_x_bool.py │ ├── if_x_bool_else_bool.py │ ├── import_star.py │ ├── list_as_arg.py │ ├── list_with_vals_as_arg.py │ ├── listcomp_as_arg.py │ ├── no_builtin_assign.py │ ├── path_join.py │ ├── path_join_one_var.py │ ├── path_join_two_vars.py │ ├── return_equals_bool.py │ ├── set_as_arg.py │ ├── set_with_vals_as_arg.py │ ├── setcomp_as_arg.py │ └── standard_exception.py └── test.py ├── setup.cfg ├── setup.py └── tox.ini /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /MANIFEST: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/MANIFEST -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/README.md -------------------------------------------------------------------------------- /mastool/__init__.py: -------------------------------------------------------------------------------- 1 | """ 2 | Mastool Module 3 | """ 4 | -------------------------------------------------------------------------------- /mastool/extension.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/extension.py -------------------------------------------------------------------------------- /mastool/helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/helpers.py -------------------------------------------------------------------------------- /mastool/practices.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/practices.py -------------------------------------------------------------------------------- /mastool/samples/a_equals_b.py: -------------------------------------------------------------------------------- 1 | a == b 2 | -------------------------------------------------------------------------------- /mastool/samples/assign_builtin.py: -------------------------------------------------------------------------------- 1 | id = 1 2 | -------------------------------------------------------------------------------- /mastool/samples/assign_builtin_unpack.py: -------------------------------------------------------------------------------- 1 | a, map = 1, 2 2 | -------------------------------------------------------------------------------- /mastool/samples/comprehension.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/comprehension.py -------------------------------------------------------------------------------- /mastool/samples/comprehension_as_statement.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/comprehension_as_statement.py -------------------------------------------------------------------------------- /mastool/samples/dict_as_arg.py: -------------------------------------------------------------------------------- 1 | def foo(x, y={}): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/dict_with_vals_as_arg.py: -------------------------------------------------------------------------------- 1 | def foo(x, y={1:2, 2:3, 3:4}): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/dictcomp_as_arg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/dictcomp_as_arg.py -------------------------------------------------------------------------------- /mastool/samples/dictomp_as_arg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/dictomp_as_arg.py -------------------------------------------------------------------------------- /mastool/samples/double_generic_exception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/double_generic_exception.py -------------------------------------------------------------------------------- /mastool/samples/double_generic_silent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/double_generic_silent.py -------------------------------------------------------------------------------- /mastool/samples/for_in_y.py: -------------------------------------------------------------------------------- 1 | for x in y: 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/for_in_y_keys.py: -------------------------------------------------------------------------------- 1 | for x in y.keys(): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/from_import.py: -------------------------------------------------------------------------------- 1 | from a import x, y 2 | -------------------------------------------------------------------------------- /mastool/samples/function_def.py: -------------------------------------------------------------------------------- 1 | def foo(x, y): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/generator.py: -------------------------------------------------------------------------------- 1 | any(a for a in b) 2 | -------------------------------------------------------------------------------- /mastool/samples/generator_as_statement.py: -------------------------------------------------------------------------------- 1 | (a for a in y) 2 | -------------------------------------------------------------------------------- /mastool/samples/generic_exception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/generic_exception.py -------------------------------------------------------------------------------- /mastool/samples/generic_silent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/generic_silent.py -------------------------------------------------------------------------------- /mastool/samples/genexp_as_arg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/genexp_as_arg.py -------------------------------------------------------------------------------- /mastool/samples/if_equals_bool.py: -------------------------------------------------------------------------------- 1 | if a == False: 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/if_expression.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/if_expression.py -------------------------------------------------------------------------------- /mastool/samples/if_expression_as_statement.py: -------------------------------------------------------------------------------- 1 | 1 if 2 else 3 2 | -------------------------------------------------------------------------------- /mastool/samples/if_x_bool.py: -------------------------------------------------------------------------------- 1 | if foo: 2 | return True 3 | -------------------------------------------------------------------------------- /mastool/samples/if_x_bool_else_bool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/if_x_bool_else_bool.py -------------------------------------------------------------------------------- /mastool/samples/import_star.py: -------------------------------------------------------------------------------- 1 | from a import * 2 | -------------------------------------------------------------------------------- /mastool/samples/list_as_arg.py: -------------------------------------------------------------------------------- 1 | def foo(x, y=[]): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/list_with_vals_as_arg.py: -------------------------------------------------------------------------------- 1 | def foo(x, y=[1,2,3]): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/listcomp_as_arg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/listcomp_as_arg.py -------------------------------------------------------------------------------- /mastool/samples/no_builtin_assign.py: -------------------------------------------------------------------------------- 1 | a = 1 2 | -------------------------------------------------------------------------------- /mastool/samples/path_join.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/path_join.py -------------------------------------------------------------------------------- /mastool/samples/path_join_one_var.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/path_join_one_var.py -------------------------------------------------------------------------------- /mastool/samples/path_join_two_vars.py: -------------------------------------------------------------------------------- 1 | a, b = "foo", "bar" 2 | a + "/" + b 3 | -------------------------------------------------------------------------------- /mastool/samples/return_equals_bool.py: -------------------------------------------------------------------------------- 1 | return a == True 2 | -------------------------------------------------------------------------------- /mastool/samples/set_as_arg.py: -------------------------------------------------------------------------------- 1 | def foo(x, y=set()): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/set_with_vals_as_arg.py: -------------------------------------------------------------------------------- 1 | def foo(x, y={1, 2, 3}): 2 | pass 3 | -------------------------------------------------------------------------------- /mastool/samples/setcomp_as_arg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/setcomp_as_arg.py -------------------------------------------------------------------------------- /mastool/samples/standard_exception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/samples/standard_exception.py -------------------------------------------------------------------------------- /mastool/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/mastool/test.py -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- 1 | [metadata] 2 | description-file = README.md 3 | 4 | [flake8] 5 | exclude = *samples* 6 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/setup.py -------------------------------------------------------------------------------- /tox.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/omaraboumrad/mastool/HEAD/tox.ini --------------------------------------------------------------------------------