1
0
Fork 0
mirror of synced 2024-06-16 01:05:04 +12:00
Commit graph

4 commits

Author SHA1 Message Date
vlad doster 0d9b122736
Merge branch 'master' into master 2021-02-28 23:55:50 -06:00
vlad doster fc42afbabe
(maint) code clean up (#187)
## bdfr

- Add the bound instance as method parameter
- Change methods not using its bound instance to staticmethods
- Fix dangerous default argument
- Refactor the comparison involving `not`
- Refactor unnecessary `else` / `elif` when `if` block has a `raise` statement
- Refactor unnecessary `else` / `elif` when `if` block has a `return` statement
- Refactor useless `else` block in the loop
- Remove implicit `object` from the base class
- Remove reimported module
- Remove unnecessary generator
- Remove unnecessary return statement
- Remove unnecessary use of comprehension
- Remove unused imports
- Use `is` to compare type of objects
- Using not x can cause unwanted results

## Dockerfile

- use a pinned Python version tag instead of latest
- leverage cached requirements

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>

Co-authored-by: Ali Parlakçı <parlakciali@gmail.com>
2021-02-25 12:32:06 +03:00
vlad doster b44b458363
Pin Dockerfile Python version explicitly to a release tag 2021-02-06 06:48:17 -06:00
Ali Parlakçı df7f5381a0
Docker integration 2020-06-05 17:23:45 +03:00