Commit Graph

81 Commits

Author SHA1 Message Date
pyup-bot
8459c662e7 Update pep8-naming from 0.4.1 to 0.5.0 2018-01-08 16:39:17 +01:00
pyup-bot
f836b615c1 Update flake8-future-import from 0.4.3 to 0.4.4 2018-01-08 16:39:15 +01:00
pyup-bot
6c91633293 Update flake8-docstrings from 1.1.0 to 1.3.0 2018-01-08 16:39:14 +01:00
pyup-bot
a98cd16ff3 Update flake8-polyfill from 1.0.1 to 1.0.2 2018-01-01 16:34:15 +01:00
pyup-bot
26bbd10952 Update attrs from 17.3.0 to 17.4.0 2018-01-01 16:34:10 +01:00
pyup-bot
7d3645adc2 Update flake8-bugbear from 17.4.0 to 17.12.0 2017-12-18 16:23:15 +01:00
pyup-bot
a3f57b9a9b Update flake8-builtins from 1.0 to 1.0.post0 2017-12-04 16:09:14 +01:00
Florian Bruhin
75a8938e83 Add flake8-bugbear 2017-11-26 21:50:12 +01:00
Florian Bruhin
248a12a8b9 Add flake8-comprehensions 2017-11-26 21:42:50 +01:00
Florian Bruhin
1981239478 Add flake8-builtins 2017-11-26 21:22:33 +01:00
Florian Bruhin
5490f70b25 Remove flake8-pep3101
It seems to trigger when using modulo on ints as well, which is kind of
annoying.

See #3320
2017-11-26 20:30:42 +01:00
Florian Bruhin
b5dd647678 Upgrade pydocstyle/flake8-docstrings
See #3320
2017-11-26 20:30:32 +01:00
Ryan Farley
5ed8019115 update flake8 and flake8-deprecated
Updated requirements and adjusted the configuration in `.flake8`; other
files have been modified where the lack of per-file auto-ignore caused
problems, where putty's `# flake8: disable=` syntax could be replaced
with a simpler `noqa`, or where pylint directives already suppressed the
same error.
2017-11-26 00:16:14 -06:00
Florian Bruhin
8ddf843c64 Adjust flake8 pins
Looks like flake8-debugger 3.0.0 works with the old flake8 again, while
flake8-deprecated doesn't anymore (hah, the irony :D).
2017-11-07 06:34:04 +01:00
pyup-bot
b759dbfc27 Update flake8-deprecated from 1.2.1 to 1.3 2017-11-06 15:50:23 +01:00
pyup-bot
b61a9c9512 Update flake8-debugger from 1.4.0 to 3.0.0 2017-11-06 15:50:22 +01:00
Florian Bruhin
59236802c1 Update dependencies
Closes #2985
2017-09-19 10:41:57 +02:00
pyup-bot
111390db0f Update pyflakes from 1.5.0 to 1.6.0 2017-08-07 16:16:19 +02:00
pyup-bot
2e4704aaa7 Update flake8-deprecated from 1.2 to 1.2.1 2017-07-31 16:07:20 +02:00
pyup-bot
9e6b84e31e Update flake8-tidy-imports from 1.0.6 to 1.1.0 2017-07-10 15:55:12 +02:00
Florian Bruhin
e15b7a4fde Recompile requirements
This reintroduces packages which have been masked before (as they were pip
dependencies).
2017-06-01 16:42:12 +02:00
Florian Bruhin
9ab4549b9b requirements: Filter flake8-pep3101 1.1 2017-05-12 10:32:06 +02:00
pyup-bot
e238f32e7b Update flake8-deprecated from 1.1 to 1.2 2017-05-12 00:59:36 +02:00
pyup-bot
64a4e33caa Update flake8-tuple from 0.2.12 to 0.2.13 2017-04-30 12:29:12 +02:00
Florian Bruhin
6e0d138d23 flake8 requirements: Pin flake8-docstrings to < 1.1.0
Closes #2593
2017-04-29 13:45:14 +02:00
Florian Bruhin
0b118f4fd8 Blacklist pydocstyle >= 2.0.0
Closes #2539
2017-04-20 04:35:10 +02:00
pyup-bot
7ef71750e7 Update flake8-tidy-imports from 1.0.5 to 1.0.6 2017-03-07 06:16:53 +01:00
Florian Bruhin
89f95be5e5 Various requirements updates 2017-02-05 01:30:39 +01:00
Florian Bruhin
d9389ff0a7 Various requirements updates 2017-01-17 08:31:23 +01:00
Florian Bruhin
7711e07b0c flake8 requirements: Update pyflakes to 1.5.0 2017-01-10 10:29:01 +01:00
Florian Bruhin
48d4c9311a Various dependency updates 2017-01-02 20:16:51 +01:00
Florian Bruhin
caa3df1595 requirement updates 2016-12-14 20:32:00 +01:00
Florian Bruhin
856ae39673 flake8 requirements: Update flake8-pep1301 to 1.0 2016-11-29 07:29:47 +01:00
Florian Bruhin
bc3f96ce9a flake8 requirement: Update pycodestyle to 2.2.0 2016-11-15 10:51:21 +01:00
Florian Bruhin
7e6edaf93d flake8: Get rid of 'hacking' plugin
It doesn't seem to be intended to be used outside OpenStack, and I'm not
sure if it even works properly in our setup...
2016-11-08 07:07:17 +01:00
Florian Bruhin
55541753e7 flake8 requirements: Update pycodestyle to 2.1.0 2016-11-05 23:58:04 +01:00
Florian Bruhin
3a87319830 flake8 requirements: Update flake8-tidy-imports to 1.0.3 2016-11-05 23:55:33 +01:00
Florian Bruhin
37d5991fff flake8 requirements: Update packaging to 16.8 2016-10-30 00:39:00 +02:00
Florian Bruhin
d939a16950 flake8 requirements: Update flake8-pep3101 to 0.6 2016-10-30 00:37:03 +02:00
Florian Bruhin
634cad7f15 flake8 reqs: Update flake8-deprecated to 1.1 2016-10-27 06:09:43 +02:00
Florian Bruhin
15a2b6ba82 flake8 requirements: Update pyparsing to 2.1.10 2016-10-07 07:32:35 +02:00
Florian Bruhin
9ca4ff896d flake8 requirements: Update pydocstyle to 1.1.1 2016-10-05 07:11:20 +02:00
Florian Bruhin
6df1df2c04 flake8 requirements: Blacklist pydocstyle 1.1.0
See https://gitlab.com/pycqa/flake8-docstrings/issues/16
2016-09-30 08:43:07 +02:00
Florian Bruhin
ad84691f5b flake8 reqs: Blacklist flake8-debugger 2.0.0
See https://github.com/JBKahn/flake8-debugger/issues/5
2016-09-20 09:40:36 +02:00
Florian Bruhin
94a3047df2 flake8 requirements: Update pyparsing to 2.1.9 2016-09-11 20:22:22 +02:00
Florian Bruhin
3edd6d4834 flake8 requirements: Update flake8-mock to 0.3 2016-09-11 20:22:11 +02:00
Florian Bruhin
3f279a3a31 flake8 requirements: Update pyflakes to 1.3.0 2016-09-01 23:00:00 +02:00
Florian Bruhin
355388226b flake8 requirements: Update pyparsing to 2.1.8
- Fixed issue in the optimization to _trim_arity, when the full
  stacktrace is retrieved to determine if a TypeError is raised in
  pyparsing or in the caller's parse action. Code was traversing
  the full stacktrace, and potentially encountering UnicodeDecodeError.

- Fixed bug in ParserElement.inlineLiteralsUsing, causing infinite
  loop with Suppress.

- Fixed bug in Each, when merging named results from multiple
  expressions in a ZeroOrMore or OneOrMore. Also fixed bug when
  ZeroOrMore expressions were erroneously treated as required
  expressions in an Each expression.

- Added a few more inline doc examples.

- Improved use of runTests in several example scripts.
2016-08-15 19:37:09 +02:00
Florian Bruhin
273b7c01ca flake8 requirements: Update pyparsing to 2.1.7
- Fixed regression reported by Andrea Censi (surfaced in PyContracts
  tests) when using ParseSyntaxExceptions (raised when using operator '-')
  with packrat parsing.

- Minor fix to oneOf, to accept all iterables, not just space-delimited
  strings and lists. (If you have a list or set of strings, it is
  not necessary to concat them using ' '.join to pass them to oneOf,
  oneOf will accept the list or set or generator directly.)
2016-08-11 19:26:19 +02:00
Florian Bruhin
ee24bdb1c8 flake8 requirements: Update pyparsing to 2.1.6
- *Major packrat upgrade*, inspired by patch provided by Tal Einat -
  many, many, thanks to Tal for working on this! Tal's tests show
  faster parsing performance (2X in some tests), *and* memory reduction
  from 3GB down to ~100MB! Requires no changes to existing code using
  packratting. (Uses OrderedDict, available in Python 2.7 and later.
  For Python 2.6 users, will attempt to import from ordereddict
  backport. If not present, will implement pure-Python Fifo dict.)

- Minor API change - to better distinguish between the flexible
  numeric types defined in pyparsing_common, I've changed "numeric"
  (which parsed numbers of different types and returned int for ints,
  float for floats, etc.) and "number" (which parsed numbers of int
  or float type, and returned all floats) to "number" and "fnumber"
  respectively. I hope the "f" prefix of "fnumber" will be a better
  indicator of its internal conversion of parsed values to floats,
  while the generic "number" is similar to the flexible number syntax
  in other languages. Also fixed a bug in pyparsing_common.numeric
  (now renamed to pyparsing_common.number), integers were parsed and
  returned as floats instead of being retained as ints.

- Fixed bug in upcaseTokens and downcaseTokens introduced in 2.1.5,
  when the parse action was used in conjunction with results names.
  Reported by Steven Arcangeli from the dql project, thanks for your
  patience, Steven!

- Major change to docs! After seeing some comments on reddit about
  general issue with docs of Python modules, and thinking that I'm a
  little overdue in doing some doc tuneup on pyparsing, I decided to
  following the suggestions of the redditor and add more inline examples
  to the pyparsing reference documentation. I hope this addition
  will clarify some of the more common questions people have, especially
  when first starting with pyparsing/Python.

- Deprecated ParseResults.asXML. I've never been too happy with this
  method, and it usually forces some unnatural code in the parsers in
  order to get decent tag names. The amount of guesswork that asXML
  has to do to try to match names with values should have been a red
  flag from day one. If you are using asXML, you will need to implement
  your own ParseResults->XML serialization. Or consider migrating to
  a more current format such as JSON (which is very easy to do:
  results_as_json = json.dumps(parse_result.asDict()) Hopefully, when
  I remove this code in a future version, I'll also be able to simplify
  some of the craziness in ParseResults, which IIRC was only there to try
  to make asXML work.

- Updated traceParseAction parse action decorator to show the repr
  of the input and output tokens, instead of the str format, since
  str has been simplified to just show the token list content.

  (The change to ParseResults.__str__ occurred in pyparsing 2.0.4, but
  it seems that didn't make it into the release notes - sorry! Too
  many users, especially beginners, were confused by the
  "([token_list], {names_dict})" str format for ParseResults, thinking
  they were getting a tuple containing a list and a dict. The full form
  can be seen if using repr().)

  For tracing tokens in and out of parse actions, the more complete
  repr form provides important information when debugging parse actions.
2016-08-08 23:54:42 +02:00