summaryrefslogtreecommitdiff
path: root/tests/unit/test_file_processor.py
Commit message (Collapse)AuthorAgeFilesLines
* extend black formatting to tests as wellAnthony Sottile2021-04-181-167/+236
|
* automatic: pyupgrade --py36-plusAnthony Sottile2021-03-301-5/+5
|
* introduce pyupgrade, run it in python2-compatible modeAnthony Sottile2021-03-291-1/+1
|
* fix a few small spelling issuesAnthony Sottile2020-09-201-1/+1
| | | | found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
* instrument coverage on tests and require 100% coverage thereAnthony Sottile2020-03-231-2/+1
|
* Allow noqa to apply to lines due to continuationnoqa_continuationAnthony Sottile2020-03-171-5/+45
|
* split lines the same when read from stdinAnthony Sottile2020-01-161-13/+4
|
* Remove redundant sample dataIsac Yoo2019-11-131-9/+2
|
* Fix codesByeonghoon Yoo2019-11-061-20/+30
|
* Add unit test for dd411e95Byeonghoon Yoo2019-11-051-13/+20
|
* Don't reset indent_char when we encounter E101Anthony Sottile2019-09-241-18/+0
|
* Add type annotations for flake8.processorAnthony Sottile2019-09-071-2/+3
|
* whitelist a bandit false positive and improve type annotationAnthony Sottile2019-05-191-3/+3
|
* Fix lintersAnthony Sottile2019-01-301-4/+9
|
* Refactor file processor tests to use fixtureTomer Keren2019-01-301-59/+50
|
* Latest pycodestyleAnthony Sottile2019-01-291-0/+1
|
* Fix lintersAnthony Sottile2019-01-271-1/+1
|
* Add tests for noqa without a spaceTomer Keren2018-12-271-0/+4
|
* Fixups after 3.6.0 releaseAnthony Sottile2018-10-231-12/+11
|
* Be explicit about the bytes put into test filesAnthony Sottile2018-10-231-5/+6
|
* Revert "Merge branch 'revert-63b91c95' into 'master'"Anthony Sottile2018-10-231-0/+26
| | | | | This reverts commit ba2fb9c53a8316642249598f599bbf7608d54260, reversing changes made to 63b91c95ea7795e3c3c90f2d643f685bfff312e9.
* Revert "Merge branch 'match_newlines_py3' into 'master'"Anthony Sottile2018-10-231-26/+0
| | | This reverts merge request !253
* Fix inconsistent newlines read from a file in python3Anthony Sottile2018-10-221-0/+26
|
* Only skip a file if `# flake8: noqa` is on a line by itselfAnthony Sottile2018-07-011-0/+1
|
* Report error when non-exiting path is passed to flake8Avraham Shukron2018-02-211-0/+5
|
* Simplify and speed up multiprocessingAnthony Sottile2016-11-291-1/+1
|
* Handle empty stdin-display-name valuesIan Cordasco2016-10-281-0/+12
| | | | | | | Apparently, some folks pass an empty string to --stdin-display-name. To avoid the errors this causes, we need to handle it appropriately. Closes #235
* Fix read_lines_splits_lines test for CRLF endingsFichteFoll2016-07-271-1/+2
|
* Fix up merge request 78Ian Cordasco2016-07-201-3/+11
| | | | | | | | This simplifies the changes, reduces the scope of refactors apparently for refactoring's sake and ensures that the internals are reasonable. It also airs on the side of preserving information rather than discarding or overwriting it.
* Propagate the stdin_display_name to checker and processorLeonardo Rochael Almeida2016-07-201-1/+6
| | | | This way plugins like flake8-putty can have access to the correct filename.
* Handle optional parameters that were never supportedIan Cordasco2016-06-281-5/+9
| | | | | | | | | | | | | | | | | Previously, pycodestyle never introspected the argument names for classes except to require that ``tree`` be an argument it could pass. For Flake8 3.0, we lifted that restriction, but old plugins seem to have cargo-culted their __init__ signature to be def __init__(self, tree, builtins=None): For some yet unknown reason. This was causing an AttributeError. By updating flake8.utils.parameters_for to return a dictionary that indicates whether the parameter is required or not, we can side-step this by simply ignoring the parameter if it has a default value and we cannot provide it. Closes #151
* Add more processor testsIan Cordasco2016-04-021-0/+42
|
* Add more tests around the processor moduleIan Cordasco2016-03-291-0/+40
|
* Add a few more unit tests around FileProcessorIan Cordasco2016-03-281-0/+42
|
* Add unit test for build_astIan Cordasco2016-03-281-0/+11
|
* Add test for FileProcessor#split_lineIan Cordasco2016-03-271-0/+18
|
* Add more FileProcessor testsIan Cordasco2016-03-261-0/+80
|
* Add test for reading from stdin with the file processorIan Cordasco2016-03-211-0/+12
|
* Add a test for FileProcessor.should_ignore_fileIan Cordasco2016-03-171-0/+14
|
* Add docstring for our test helperIan Cordasco2016-03-171-0/+1
|
* Remove unnecessary and outdated test runnerIan Cordasco2016-03-171-11/+18
|
* Rename test file to mirror actual class it is testingIan Cordasco2016-03-171-0/+26