fix #744 #843 and disable E203 (flake8).
authorfunilrys <redacted>
Sat, 13 Jul 2019 11:41:36 +0000 (13:41 +0200)
committerfunilrys <redacted>
Sat, 13 Jul 2019 11:41:36 +0000 (13:41 +0200)
commitb93b427a6e0f2edd3f8f4a2ab8a1bb80dda344c7
tree2c6a21321e86a91cc3a2257f9a95a971e0c48f01
parent05dad7e657da1224b6b28e905b76d4c6a7b21735
fix #744 #843 and disable E203 (flake8).

Indeed, before this patch, no `# Title: XYZ` was describing our generated
host file. This patch fixes that.

Indeed, we now do the following:

- If no extension is included we add:
    - `# Title: StevenBlack/hosts`
- If exactly one extension is included we add:
    - `# Title: StevenBlack/hosts with the extension_name extension`
- If more than one extension is included we add (in one line):
    - `# Title: StevenBlack/hosts with the extname1,
      extname2 and extname3 extensions`

Please also note that I disable E203 (whitespace before ':') for flake8
at line 773.

Since we use Black for code formatting let me redirect you to
the documentation of Black which explain what I did.

https://black.readthedocs.io/en/stable/the_black_code_style.html#slices :

> Since E203 is not PEP 8 compliant, you should tell
> Flake8 to ignore these warnings.
updateHostsFile.py
git clone https://git.99rst.org/PROJECT