Commit Graph

4 Commits

Author SHA1 Message Date
Daniël van Noord
a8b7dd7bff
Add unspecified-encoding checker #3826 (#4753)
* Add unspecified-encoding checker #3826
This adds an unspecified-encoding checker that adds a warning
whenever open() is called without an explicit encoding argument.
This closes #3826

* Update tests to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added, or the message has been
disabled.
This also includes small linting changes to a small number
of tests. Their test-data has been updated to reflect new line numbers.

* Update scripts to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added.

* Update pylint to conform to unspecified-encoding
With addition of the unspecified-encoding checker calls of open()
need an encoding argument.
Where necessary this argument has been added.

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-07-28 20:18:44 +02:00
Marc Mueller
6e9c6384be Improve fix-documentation pre-commit hook 2021-03-09 22:22:39 +01:00
Pierre Sassoulas
c85d202a23 Remove all fmt off from the codebase 2021-03-06 13:22:08 +01:00
Marc Mueller
90c915c3f8 Add custom fix-documentation pre-commit-hook 2021-03-06 09:08:33 +01:00