summaryrefslogtreecommitdiff
path: root/tests/fixtures
Commit message (Collapse)AuthorAgeFilesLines
* automatic: pyupgrade --py36-plusAnthony Sottile2021-03-301-1/+2
|
* options: Remove parsing `--verbose` from the configuration fileEric N. Vander Weele2019-10-121-1/+0
| | | | | | | | | | | | The `--verbose` option is only used by `flake8`, itself,` when parsing and handling preliminary options. After parsing and merging options from the configuration file, there is no other behavioral impact to the core of `flake8`. In other words, setting `verbose = ...` in a configuration file doesn't change the logging verbosity. While the `FileProcessor` does expose a `verbose` attribute, obtained from the parsed options, the verbosity of the core of `flake8` should be consistent with how a plugin may respond to the attribute's value.
* Add paths option in local-plugins config file.Carl Meyer2017-10-241-0/+5
|
* Add support for local (in-repo, non-setuptools) plugins.Carl Meyer2017-08-032-3/+12
| | | | Closes #357
* Reproduce quiet/verbose config problemShinya Kawaguchi2017-07-221-0/+2
|
* Handle SyntaxErrors after new-lines speciallyIan Cordasco2016-10-231-0/+1
| | | | | | | | | | | In some cases, when we handle SyntaxErrors we need to ensure that the column number is correct for a 1-indexed report. In some cases, we also need to account for the fact that the SyntaxError has happened "after" a new-line. To extract and alter the row and column numbers, we've moved the logic to a private static method on the FileChecker object to avoid an overly complex method. Closes #237
* Add empty file as a test fixtureIan Cordasco2016-07-091-0/+0
|
* Parse hyphenated config names alsoIan Cordasco2016-06-281-0/+5
| | | | | | | | | | | | | | | Previously Flake8 parsed both max-line-length = 110 And max_line_length = 110 From the config file without issue. When we updated our logic, I forgot to test for that and we lost that behaviour temporarily. Closes #152
* Add broken config file to test error handlingIan Cordasco2016-06-161-0/+9
| | | | | | | | | | | ConfigFileFinder should absolutely handle broken/invalid config files by refusing to try to parse them. Here we catch the ParsingError, log the exception, and then return normally. The RawConfigParser instance is perfectly valid still and will behave as if nothing had been read and we just need to indicate that we didn't find any files worthy of reading. Related to: https://github.com/PyCQA/pycodestyle/issues/506
* Add test fixture that mirrors documented usageIan Cordasco2016-06-071-0/+1
|
* Start adding test fixture filesIan Cordasco2016-06-071-0/+3
| | | | | | This adds E501 which is actually a poor test. Currently, pep8.maximum_line_length does its own check for noqa instead of relying on the Checker. See also: https://github.com/PyCQA/pycodestyle/pull/539
* Add tests for parse_unified_diffIan Cordasco2016-06-073-0/+202
| | | | | We could probably use non-git diff fixtures, but those are what we have for now.
* Add example configuration sections to the docsIan Cordasco2016-05-282-0/+32
| | | | Add tests to verify our examples do not regress
* Update fixture README with descriptionsIan Cordasco2016-01-191-0/+16
|
* Add forgotten config file fixturesIan Cordasco2016-01-172-0/+8
|
* Add fixture file without a flake8 sectionIan Cordasco2016-01-101-0/+20
|
* Add README to fixtures directoryIan Cordasco2016-01-101-0/+22
|
* Add config file fixturesIan Cordasco2016-01-091-0/+9
Add more ConfigFileFinder tests