Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup, remove future, autofix ruff problems #245

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lint:
python -m ruff format --check ffn setup.py docs/source/conf.py

fix:
python -m ruff check --fix ffn setup.py docs/source/conf.py
python -m ruff format ffn setup.py docs/source/conf.py

clean:
Expand Down
8 changes: 2 additions & 6 deletions ffn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from . import core
from . import data

from .data import get

# from .core import year_frac, PerformanceStats, GroupStats, merge
from . import core, data
from .core import *
from .data import get

core.extend_pandas()

Expand Down
2 changes: 0 additions & 2 deletions ffn/core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import print_function

import random

import matplotlib
Expand Down
1 change: 0 additions & 1 deletion ffn/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import ffn

# import ffn.utils as utils
from . import utils


Expand Down
8 changes: 2 additions & 6 deletions ffn/utils.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import pickle
import re
from typing import List, Sequence, Tuple, Union

import decorator
import numpy as np
import pandas as pd
from packaging.version import Version
from typing import List, Sequence, Tuple, Union

try:
import cPickle as pickle
except ImportError:
import pickle


def _memoize(func, *args, **kw):
Expand Down