1212def _parse_command_line_arguments (
1313 parser : argparse .ArgumentParser , args : List [str ], namespace : argparse .Namespace
1414) -> None :
15- """Parse all arguments on the provided argument parser"""
15+ """Parse all arguments on the provided argument parser. """
1616 parser .parse_known_args (args , namespace )
1717
1818
1919def _register_arguments (version : str ) -> argparse .ArgumentParser :
20- """Create an argument parser and add all supported arguments"""
20+ """Create an argument parser and add all supported arguments. """
2121 parser = argparse .ArgumentParser (prog = "pydocstringformatter" )
2222
2323 parser .add_argument ("files" , nargs = "*" , type = str )
@@ -41,7 +41,7 @@ def _register_arguments(version: str) -> argparse.ArgumentParser:
4141
4242
4343def _get_toml_file () -> Optional [Dict [str , Any ]]:
44- """See if there is a pyproject.toml and extract the correct section if it exists"""
44+ """See if there is a pyproject.toml and extract the correct section if it exists. """
4545 if os .path .isfile ("pyproject.toml" ):
4646 with open ("pyproject.toml" , "rb" ) as file :
4747 try :
@@ -56,7 +56,7 @@ def _get_toml_file() -> Optional[Dict[str, Any]]:
5656
5757
5858def _parse_toml_option (opt : str , value : Any ) -> List [str ]:
59- """Parse an options value in the correct argument type for argparse"""
59+ """Parse an options value in the correct argument type for argparse. """
6060 try :
6161 action = OPTIONS_TYPES [opt ]
6262 except KeyError as exc :
@@ -72,7 +72,7 @@ def _parse_toml_option(opt: str, value: Any) -> List[str]:
7272def _parse_toml_file (
7373 parser : argparse .ArgumentParser , namespace : argparse .Namespace
7474) -> None :
75- """Get and parse the relevant section form a pyproject.toml file"""
75+ """Get and parse the relevant section form a pyproject.toml file. """
7676 if toml_sect := _get_toml_file ():
7777 arguments : List [str ] = []
7878
0 commit comments