-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pre-commit ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add pre-commit badge * Fix lint error Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
14bb6ef
commit 825d422
Showing
5 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import logging | ||
|
||
logging.basicConfig() | ||
logger = logging.getLogger('pyportfolio') | ||
logger = logging.getLogger("pyportfolio") | ||
logger.setLevel(logging.INFO) | ||
|
||
|
||
# Filter Utils | ||
def and_filter(filters): | ||
return lambda x: all(f(x) for f in filters) | ||
|
||
|
||
def or_filter(filters): | ||
return lambda x: any(f(x) for f in filters) | ||
|
||
|
||
def filter_dict(mydict, keys): | ||
return {key: mydict[key] for key in keys } | ||
return {key: mydict[key] for key in keys} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import setuptools | ||
|
||
if __name__ == "__main__": | ||
setuptools.setup() | ||
setuptools.setup() |