Python/other
Christian Clauss ef9827166e
Approve functions used as default arguments (#4699)
* Approve functions used as default argumenets

* The default value for **seed** is the result of a function call

The default value for **seed** is the result of a function call which is not normally recommended and causes flake8-bugbear to raise a B008 error. However, in this case, it is accptable because `LinearCongruentialGenerator.__init__()` will only be called once per instance and it ensures that each instance will generate a unique sequence of numbers.

* The default value for **backend** is the result of a function call

The default value for **backend** is the result of a function call which is not normally recommended and causes flake8-bugbear to raise a B008 error. However, in this case, it is accptable because `Aer.get_backend()` is called when the function is definition and that same backend is then reused for function calls.

* Update linear_congruential_generator.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py
2021-08-31 07:56:19 +02:00
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
activity_selection.py Optimized recursive_bubble_sort (#2410) 2020-09-10 10:31:26 +02:00
date_to_weekday.py add date_to_weekday finder method (#4599) 2021-08-18 14:05:41 +02:00
davis–putnam–logemann–loveland.py DPLL algorithm (#3866) 2020-11-08 18:26:22 +01:00
dijkstra_bankers_algorithm.py from __future__ import annotations (#2464) 2020-09-23 13:30:13 +02:00
doomsday.py Add doomsday algorithm (#2903) 2020-10-07 20:22:56 +08:00
fischer_yates_shuffle.py [fixed] unused variable, standalone running, import doctest module (#4673) 2021-08-28 20:07:10 +02:00
gauss_easter.py Easter date gauss algorithm (#2010) 2020-05-19 13:44:45 +02:00
graham_scan.py Add graham scan algorithm (#4205) 2021-03-02 13:24:41 +01:00
greedy.py Update greedy.py (#1832) 2020-04-07 01:00:10 +02:00
least_recently_used.py fix(ci): Update pre-commit hooks and apply new black (#4359) 2021-04-26 07:46:50 +02:00
lfu_cache.py Only one carriage return (#2155) 2020-06-25 19:15:30 +02:00
linear_congruential_generator.py Approve functions used as default arguments (#4699) 2021-08-31 07:56:19 +02:00
lru_cache.py Only one carriage return (#2155) 2020-06-25 19:15:30 +02:00
magicdiamondpattern.py Optimized recursive_bubble_sort (#2410) 2020-09-10 10:31:26 +02:00
nested_brackets.py Set the Python file maximum line length to 88 characters (#2122) 2020-06-16 10:09:19 +02:00
password_generator.py Simplify password_generator() (#4333) 2021-04-22 14:22:54 +05:30
scoring_algorithm.py requirements.txt: Unpin numpy (#2287) 2020-08-06 17:50:23 +02:00
sdes.py Tighten up psf/black and flake8 (#2024) 2020-05-22 08:10:11 +02:00
tower_of_hanoi.py psf/black code formatting (#1277) 2019-10-05 10:14:13 +05:00