summaryrefslogtreecommitdiff
path: root/tests/test_epylint.py
Commit message (Collapse)AuthorAgeFilesLines
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-0/+4
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-1/+1
|
* Add typing with `PyAnnotate` to `./tests` (#4950)Daniël van Noord2021-09-041-3/+5
| | | | | | * Add mypy_extensions to requirement for ``NoReturn`` Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add ``Consider-using-f-string`` checker (#4796)Daniël van Noord2021-08-301-0/+2
| | | | | | | | | | | | | | | | * Add ``consider-using-f-string`` checker This adds a checker for normal strings which are formatted with ``.format()`` or '%'. The message is a convention to nudge users towards using f-strings. This closes #3592 * Update pylint code to use f-strings After adding `consider-using-f-strings` the codebase showed numerous cases of formatting which could be f-strings. This commit changes most of these to become f-strings, or adds ignores. * Apply suggestions from code review Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Add unspecified-encoding checker #3826 (#4753)Daniël van Noord2021-07-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Command without the equal for WindowsPierre Sassoulas2021-04-031-1/+1
|
* Add a test for epylint for issue 4286Pierre Sassoulas2021-04-031-0/+61
We can't do better than that without breaking the multiple files analysis from command line.