Commit Graph

68 Commits

Author SHA1 Message Date
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
Florian Bruhin
12f506073a flake8/pylint reqs: Update mccabe to 0.5.2
When opening files ourselves, make sure we always name the file variable
2016-08-01 10:06:08 +02:00
Florian Bruhin
3aa5eb86fb requirements: Update mccabe to 0.5.1
- Set default maximum complexity to -1 on the class itself
2016-07-28 15:55:41 +02:00
Florian Bruhin
263ecee1a3 flake8 reqs: Update flake8-string-format to 0.2.3
Properly register with Flake8 so it will be selected on Flake8 3.x by
default and it can be selected on Flake8 2.x.
2016-07-27 19:41:24 +02:00
Florian Bruhin
a6af9d7d35 flake8 reqs: Undo accidental pep8 downgrade 2016-07-26 16:51:45 +02:00
Florian Bruhin
d19c7012a5 flake8 reqs: Update flake8-docstrings to 1.0.2
- Use pycodestyle to get standard-in.
2016-07-26 16:51:19 +02:00
Florian Bruhin
b30773aa68 flake8 requirements: Add comment for pep8 pin 2016-07-26 16:14:21 +02:00
Florian Bruhin
54b9ead0d0 flake8 reqs: Update flake8-docstrings to 1.0.1
1.0.1
-----

Make sure this works out of the box (is enabled by default) with
Flake8 3.0

1.0.0
-----

Switch dependency name to pydocstyle. pep257 was renamed to pydocstyle,
this update switches the requirement to that new package name. Since
we’re swapping out dependencies, we’ve issued a major version bump.
2016-07-26 16:12:23 +02:00
Florian Bruhin
c618983b3d flake8 requirements: Update flake8-tuple to 0.2.12
flake8>=3.0.0 compatibility
2016-07-25 18:07:41 +02:00
Florian Bruhin
b8ea3d3c39 flake8 requirements: Pin flake8 properly 2016-07-25 18:07:31 +02:00
Florian Bruhin
3efb41f743 flake8 requirements: Filter to flake8 < 3.0 2016-07-25 16:39:30 +02:00
Florian Bruhin
4328169274 flake8 requirements: Get rid of ebb-lint
We've had many checks disabled - these are the ones we actually lose:

    L104
    Docstrings must use Napoleon, not reStructuredText fields.

    L205
    __init__.py is not allowed to contain function or class definitions.

    L206
    Implicit relative imports are not allowed.

    L208
    Pokémon exception handling is always a mistake. If the intent is
    really to catch and ignore exceptions, explicitly name which
    exception types to silence.

    L209
    return, del, raise, assert, print (in python 2, without
    print_function) yield, and yield from are statements, not functions,
    and as such, do not require parentheses.

    L210
    Instead of intentionally relying on the side effects of map, filter,
    or a comprehension, write an explicit for loop.

    L211
    Using map or filter with a lambda as the first argument is always
    better written as list comprehension or generator expression. An
    expression is more readable and extensible, and less importantly,
    doesn't incur as much function call overhead.

    L212
    Using @staticmethod is always wrong.

    L301
    Files must end with a trailing newline.

    L303
    noqa is ignored, and as such, # noqa comments should be deleted to
    reduce pointless noise.

However, most of those are also checked by pylint (and the rest I don't
really care about), and ebb-lint increases flake8's runtime a lot
(45s -> almost 2min).
2016-07-13 07:24:10 +02:00
Florian Bruhin
038f803180 flake8 requirements: Update flake8-putty to 0.4.0
- Microsoft Windows filename selector fixes, with Appveyor CI testing
- Allow multiple codes to be disabled by per-line comments
- Allow comment after each rule line
- Prevent use with flake8 v3
- Support both pep8 and pycodestyle in test suite
2016-07-12 14:16:04 +02:00
Florian Bruhin
294560ec6d flake8 requirements: Update flake8-tuple to 0.2.11
- fixed: non exists file raise IOError
- fixed: compatibility with older versions of flake8
2016-07-06 00:16:43 +02:00