Replaced all plumbum.cmd.mkdir invocations that used GNU-style long-option forms for --mode and --parents with single-character flags (-m and -p).
MacOS mkdir doesn’t support --mode or --parents in GNU-style long-option form. These work on GNU/Linux (Debian, Ubuntu, etc.), but macOS uses BSD-style utilities, where options are single-character flags like -p and -m (which also work on GNU/Linux).
The linting check can be done on any docker image with the latest python
version.
This updates de pre-commit checks and fix file linting to conform to new
standards.
In a proper file each line end with a newline character, even the last
one.
Wrong file:
Using `write()` function does not add a newline character at the end of
the write. So writing a string in a file with `write()` leads to a file
like this:
```
line1\n
line2\n
lastline
```
Good file:
Using the `print()` command automatically ends the string with a newline
character. So that we ends with a proper file:
```
line1\n
line2\n
lastline\n
```
Also the with statement automatically closes the file at the end of the
block.