Commit Graph

286 Commits

Author SHA1 Message Date
Alex Hall
a1471f6fb9 Use dedent for nice multiline string 2019-04-26 10:05:12 +03:00
Alex Hall
2708376bdf Fully readable failure from assert_output 2019-04-26 10:05:12 +03:00
Alex Hall
36b3271f0a Fix incorrect tuple passed to variables in test 2019-04-26 10:05:12 +03:00
Alex Hall
d29cd6f464 Make it easier to read assert_output failure by showing mismatched line rather than just mismatched length. Also, .format can't evaluate arbitrary Python 2019-04-26 10:05:12 +03:00
Alex Hall
93edf6fced Remove more calls to decode using u prefix 2019-04-26 10:05:12 +03:00
Ram Rachum
aedaa7ee56 More styling 2019-04-25 21:59:25 +03:00
Ram Rachum
c9f1dab584 Bump version 2019-04-25 21:50:56 +03:00
Alex Hall
30e5789177 Basic fixes for linters: remove unused variables and imports, plus whitespace and other style improvements for PEP8
Edited by Ram.

# Conflicts:
#	pysnooper/pysnooper.py
#	tests/test_pysnooper.py
2019-04-25 21:49:44 +03:00
Ram Rachum
948fa7a312 Argument to overwrite file #5 2019-04-25 21:34:45 +03:00
Ram Rachum
ae001ccd19 Update AUTHORS 2019-04-25 18:13:52 +03:00
Alex Hall
7894b55a7e Remove need for conditional .decode() call which gives warning 2019-04-25 18:13:41 +03:00
Alex Hall
2b4b64b71b Cleanup generate_authors 2019-04-25 18:13:19 +03:00
Ram Rachum
c90ec63874 Part 2: Don't require setup.py to import pysnooper 2019-04-25 18:12:00 +03:00
Ram Rachum
cda2b254a1 Don't require setup.py to import pysnooper 2019-04-25 16:54:46 +03:00
Ram Rachum
24005024f4 Tweak media coverage 2019-04-25 15:00:33 +03:00
Shlomi Fish
81a8b79dc8 Add links to some online media coverage. 2019-04-25 14:58:47 +03:00
Ram Rachum
80a89cd275 Ignore coverage-related files 2019-04-25 10:44:41 +03:00
Ram Rachum
748d01bd93 Bump version 2019-04-24 23:17:56 +03:00
Ram Rachum
4c0b64fd0b Bundling decorator and six, look ma no dependencies! 2019-04-24 23:16:59 +03:00
Ram Rachum
08aea68d6a Fix bug in not closing file on PyPy 2019-04-24 22:32:08 +03:00
Ram Rachum
2d40225fcc Bump version 2019-04-24 22:28:54 +03:00
Ram Rachum
4d943e9dbb Implement IPython code fetching 2019-04-24 22:28:43 +03:00
Ram Rachum
61fd0a5262 Bump version 2019-04-24 22:14:36 +03:00
Ram Rachum
3a8c0c35a2 Fail gracefully when can't find code 2019-04-24 22:12:53 +03:00
Ram Rachum
fbb2dbdd9d Fix bug in testing infrastructure 2019-04-24 22:08:34 +03:00
Ram Rachum
5c31dfc28c Move version into __init__.py 2019-04-24 19:05:33 +03:00
Ram Rachum
64bc472b7c Canonicalize variable order #21 2019-04-24 15:57:20 +03:00
Ram Rachum
efc7dd0a97 Remove any newlines from variables 2019-04-24 15:30:51 +03:00
Ram Rachum
c0ae25deea Bump version, authors and edit readme 2019-04-24 15:29:41 +03:00
Ram Rachum
a8c6212e96 Refactor showing return values, repr, tests 2019-04-24 15:28:24 +03:00
Loukas Leontopoulos
9248c58ef4 Show function return value. Resolves #32 2019-04-24 15:27:41 +03:00
Ram Rachum
43af67b1d9 Refactor 2019-04-24 14:02:50 +03:00
Ram Rachum
c5da1d1b54 Update AUTHORS 2019-04-24 14:02:26 +03:00
Ram Rachum
665785db92 Bump version 2019-04-24 13:57:38 +03:00
Ram Rachum
a90ee0d35a Remove dependency future 2019-04-24 13:57:22 +03:00
Binwei Hu
151949a2f0 python2 collections 2019-04-24 13:56:11 +03:00
Peter Bittner
473f88a2d5 Add platform trove classifiers 2019-04-24 13:52:03 +03:00
Ram Rachum
e5edaa01a3 Update AUTHORS 2019-04-24 12:52:20 +03:00
Ram Rachum
061281d091 Bump version 2019-04-24 12:50:38 +03:00
Ram Rachum
bb6f5133d0 Add test_lambda 2019-04-24 12:46:25 +03:00
Ram Rachum
619c4406cd Refactor test_confusing_decorator_lines 2019-04-24 12:42:42 +03:00
Ram Rachum
8eef1e3589 Remove --verbose, causes problems in Wing IDE 2019-04-24 12:42:12 +03:00
Ram Rachum
9a73bdbcba Refactor detecting misplaced def lines 2019-04-24 12:36:37 +03:00
Christian Zietz
8665a46ced Add test-case for multiline decorator and lambda 2019-04-24 12:27:26 +03:00
Christian Zietz
016f4b9976 Rework code to find a function definition in case of decorated source lines 2019-04-24 12:27:26 +03:00
Christian Zietz
45db942375 Be safe and check that a function definition is found 2019-04-24 12:27:26 +03:00
Christian Zietz
5e74a351f9 Test that actual function name (and not decorator) is reported for 'call' event. 2019-04-24 12:27:26 +03:00
Christian Zietz
90951065d3 When tracing 'call' events, skip lines containing decorators to print actual function name.
Python syntax expects function decorators in a separate line so the all lines starting with '@' can be safely skipped.
2019-04-24 12:27:26 +03:00
Ram Rachum
ff4e64c457 Remove --user instructions 2019-04-24 12:19:00 +03:00
Peter Bittner
f6d937e700 Add Tox configuration, run Travis builds with Tox 2019-04-24 12:15:10 +03:00