From 1581b358fe44df1c7d49f24689c156a7a495aed4 Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Sat, 8 Jul 2017 11:19:50 -0700 Subject: [PATCH] Got pylint working locally. https://github.com/ContinuumIO/anaconda-recipes/issues/79 --- .pylintrc | Bin 76 -> 124 bytes joy/library.py | 10 +++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.pylintrc b/.pylintrc index 89fd7a32ce347a839fa8c86d684792e0ab1fab1e..f84575eb59904ce6c3c1dc03d35435603d4053d8 100644 GIT binary patch literal 124 zcma#{bqx-7baxF_aQ62L3G(-e#4(%!~{{q@fX*H0I)pcJmMNbqtB+%FIhi%`4F@E-A{)OSe^5P*8^nC8m|67U>ow K7NzFd8UXJz{Q}P)QUL%O_6xND diff --git a/joy/library.py b/joy/library.py index a012ebe..a6c809b 100644 --- a/joy/library.py +++ b/joy/library.py @@ -45,7 +45,6 @@ ('rolldown', ['roll<']), ('rollup', ['roll>']), ('id', ['•']), -# ('', ['']), ) @@ -77,7 +76,7 @@ cleave == [i] app2 [popd] dip branch == roll< choice i average == [sum 1.0 *] [size] cleave / -gcd == [0 >] [dup rollup modulus] while pop +gcd == 1 [dup rollup modulus dup 0 >] loop pop least_fraction == dup [gcd] infra [div] concat map divisor == popop 2 * minusb == pop neg @@ -114,6 +113,7 @@ ) + def add_aliases(D, A=ALIASES): for name, aliases in A: try: @@ -740,7 +740,7 @@ def app1(S, expression, dictionary): def app2(S, expression, dictionary): '''Like app1 with two items. - + ... y x [Q] . app2 ----------------------------------- ... [y ...] [Q] . infra first @@ -813,12 +813,12 @@ def times(stack, expression, dictionary): --------------------- w/ n <= 0 ... . - + ... 1 [Q] . times --------------------------------- ... . Q - + ... n [Q] . times --------------------------------- w/ n > 1 ... . Q (n - 1) [Q] times