1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
krateng
c745d4a647 Created thin setup.py for compatibility 2021-12-24 05:57:18 +01:00
Brian Pepple
d1b598a32b
Refactoring (#83)
* Merge isinstance calls

* Inline variable that is immediately returned

* Replace set() with comprehension

* Replace assignment with augmented assignment

* Remove unnecessary else after guard condition

* Convert for loop into list comprehension

* Replace unused for index with underscore

* Merge nested if conditions

* Convert for loop into list comprehension

* Convert for loop into set comprehension

* Remove unnecessary else after guard condition

* Replace if statements with if expressions

* Simplify sequence comparison

* Replace multiple comparisons with in operator

* Merge isinstance calls

* Merge nested if conditions

* Add guard clause

* Merge duplicate blocks in conditional

* Replace unneeded comprehension with generator

* Inline variable that is immediately returned

* Remove unused imports

* Replace unneeded comprehension with generator

* Remove unused imports

* Remove unused import

* Inline variable that is immediately returned

* Swap if/else branches and remove unnecessary else

* Use str.join() instead of for loop

* Multiple refactors

- Remove redundant pass statement
- Hoist repeated code outside conditional statement
- Swap if/else to remove empty if body

* Inline variable that is immediately returned

* Simplify generator expression

* Replace if statement with if expression

* Multiple refactoring

- Replace range(0, x) with range(x)
- Swap if/else branches
- Remove unnecessary else after guard condition

* Use str.join() instead of for loop

* Hoist repeated code outside conditional statement

* Use str.join() instead of for loop

* Inline variables that are immediately returned

* Merge dictionary assignment with declaration

* Use items() to directly unpack dictionary values

* Extract dup code from methods into a new one
2021-10-19 14:58:24 +02:00
Krateng
49b0a57581 Bumped Python version requirement to oldest supported 2021-01-16 17:25:52 +01:00
Krateng
fe2b0dd7c8 Reworked initial determination of user folders, GH-63 2020-12-25 04:41:33 +01:00
Krateng
ce17f77cfd Added setup.py, fix GH-27 2020-12-13 03:50:04 +01:00
Krateng
9cf1fb3ed8 Temporary fix for supervisor issues 2020-03-08 01:18:31 +01:00
Krateng
148b3d83f8 Moved backup to own file 2019-12-14 13:43:01 +01:00
Krateng
c95ce17451 Added github tagging 2019-12-13 17:37:22 +01:00
Krateng
0f4c7b04f7 Changed distribution name 2019-12-10 13:53:05 +01:00
Krateng
2e69ef7df9 More refactoring 2019-12-03 16:23:01 +01:00
Krateng
f942979e21 Improved search performance 2019-11-29 18:26:29 +01:00
Krateng
55621ef4ef Refactored into Python Package 2019-11-24 21:47:24 +01:00