Commit Graph

7 Commits

Author SHA1 Message Date
Scoder12 6fb18b0f5e Make audio lint without errors (#12)
* Add new raises sections in docstring

* Fix issue #6

* Fix _async2sync to pass a correct self value

Initialize a _super variable in __init__ which is an instance of the async base class and is used as the self argument to async methods so that the class can await internal methods

* Add do_raise to AsyncJSONKey __slots__

* Add back duplicate sync code

For performance and my sanity, its actually easier to just have duplicate code rather than try fancy async stuff

* Remove nest_asyncio

* Fix bug with auth.signed_in

If header doesn't exist, name will be None, which is not equal to an empty string making signed_in pass. Changed to bool because None and empty string are both falsey

* Ignore S201: debug=True warning

* Add new debug method to run the app in debug mode

* Add init method and nice_jinja setting

* Handle unset watch_files value

* Obey D402

* Remove unnecessarily duplicated methods

* Add getitem and setitem to sync JSONKey

* Remove whitespace from blank line

* Add new shorthands

* Add key() method

* Rename key() as it conflicts with key variable; fix docsting

* Fix accidentally quoted variable

* Make ReplitDb inherit from AsyncReplitDb

* Fix linting errors

* Fix a couple more errors

* Add keys method and change read arg name

* Add missing arg to docstring

* Fix more lint errors

* Add find function

* Add chain_decorators function

* Run black

* Add mutability to keys (WIP)

* Import new utils in maqpy init

* Fix liniting errors in maqpy.html

* Add missing colon

* Pass proper dtype

* Fix typo

* Check for instance of ReplitDb before loading to allow passing dict as db

* Set data variable to read if not loading

* Convert string to f-string in type mismatch msg

* Don't check datatype in keys

* Allow dictionary syntax if dtype is Any

* Allow __getitem__ if dtype is Any

* Don't double json encode, make top-level db be self so data gets written

* Be more pythonic by not checking dtype

* Add more magic methods: add and iadd

* In audio test, fix imports and prevent linting

* Don't lint audio.types

* Add todo line

* Make JSONKey getitem use keys

* Comment out bad tests for now
2020-08-14 14:18:52 -07:00
Scoder12 a4c394cdf4 Fix typo in maqpy path 2020-07-28 12:06:15 -07:00
Scoder12 cb6f9c340b Don't require docstrings in examples directory 2020-07-28 12:03:39 -07:00
Scoder12 349346d690 Ignore ANN206 2020-07-28 10:45:09 -07:00
Scoder12 b202b5729d Ignore import but unused in maqpi init 2020-07-27 17:20:37 -07:00
Scoder12 69eae60645 Docstring fixes 2020-07-27 13:57:37 -07:00
Scoder12 83ec541343 Initial commit 2020-07-27 12:01:38 -07:00