21 Commits

Author SHA1 Message Date
Peter Law
0e20c33c21 Add type annotations to start- and end-pos attributes
These are frequently used within consuming code, so having annotations
avoids others needing to work around mypy errors from them.
2021-01-03 15:57:53 +00:00
Dave Halter
dcc756a373 Remove object inheritance 2020-07-25 18:20:56 +02:00
Dave Halter
a0662b3b3b flake8 changes 2020-07-24 16:11:06 +02:00
Hugo
f6bdba65c0 Drop support for EOL Python 2.6 2019-08-08 14:56:27 +03:00
Dave Halter
51f2de28c6 source_to_unicode -> python_bytes_to_unicode. 2017-08-15 20:07:24 +02:00
Dave Halter
90edb2d0cf Move the iter_errors and normalizer methods to grammar.py. 2017-08-06 15:32:50 +02:00
Dave Halter
58c32591d0 Some preparations to get Python 2 tests working. 2017-07-31 12:33:47 +02:00
Dave Halter
dc3b3158eb Move some code from one compatibility file to another. 2017-07-18 18:00:51 +02:00
Dave Halter
e731eecdd8 Make the tokenizer version independent. 2017-07-11 23:29:44 +02:00
Dave Halter
b6022c7a80 Add total_ordering for python 2.6. 2017-07-11 00:33:26 +02:00
Dave Halter
679851dbf1 Make it possible to use certain python versions according to the file name of a normalizer issue file. 2017-07-10 23:50:17 +02:00
Dave Halter
3943618fe2 Remove E999 and replace them with todos. 2017-07-08 12:07:00 +02:00
Dave Halter
dd950392c8 Remove E999 for now, because those issues are not defined. Also change a few small things where issues were wrong. 2017-07-02 22:12:02 +02:00
Dave Halter
36a59a3d3b Starting to refactor the normalizer to make sure that comments are also checked for indentation.
Using a linked list now for the indentation stack.
2017-07-02 18:58:43 +02:00
Dave Halter
b4a2f2bb61 Add a latin1 test. 2017-06-28 18:11:32 +02:00
Dave Halter
0f2e6f9e22 Rework the test suite to make clearer where errors originate. 2017-06-15 19:30:48 +02:00
Dave Halter
005e5f403a Fix some stuff about backslashes. 2017-06-13 01:23:08 +02:00
Dave Halter
c07cd77417 Implement E101. No mixing of tabs and spaces in indentation. 2017-06-08 00:10:15 +02:00
Dave Halter
03c34d6105 Get the indentation errors of files mostly right even in comments. 2017-06-07 17:06:58 +02:00
Dave Halter
7d99b8e823 Make the normalizer tests' indentation easier to understand. 2017-06-06 08:56:55 +02:00
Dave Halter
d1d02ba3f5 Create the first tests for the pydocstyle finder. 2017-06-04 23:59:44 +02:00