Commit Graph

16 Commits

Author SHA1 Message Date
kennethreitz 8ffaa85050 black, etc. 2021-01-08 09:26:22 -05:00
kennethreitz 9562b1faec /s/flask_tools/web 2021-01-06 21:48:28 -05:00
kennethreitz a63b8b4912 docstrings, etc 2021-01-04 08:16:27 -05:00
kennethreitz 85f9776a5b replit online development 2021-01-01 20:08:26 +00:00
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
repl.it user 3db7b700d2 Merge remote-tracking branch 'origin/master' 2020-08-07 01:55:53 +00:00
Manitej Boorgu f20c8bb9bc Added in Changes 2020-08-06 23:35:10 +00:00
techpixel 2f4b9fb48c Add Backwards Compatibility Support 2020-08-06 00:14:13 -05:00
Manitej Boorgu 6e03ee16a6 Impelmented Everything - All Color Utils worked, tests work good 2020-08-06 05:10:14 +00:00
Scoder12 1b26d1a8f8 Rename all instances of maqpi to maqpy 2020-07-27 17:50:24 -07:00
Scoder12 4c6a7ec0bb Import maqpi in init 2020-07-27 17:22:12 -07:00
Scoder12 55b82ab1c0 Switch docstring to triple quotes 2020-07-27 17:04:03 -07:00
Scoder12 3bfde056a0 Move clear function from audio to main 2020-07-27 14:51:35 -07:00
Scoder12 f4896d432b Rearrange imports 2020-07-27 14:45:39 -07:00
Scoder12 d281375865 Move some code from audio init to top-level init 2020-07-27 14:11:45 -07:00
Scoder12 83ec541343 Initial commit 2020-07-27 12:01:38 -07:00