Skip to content

Commit

Permalink
Merge pull request #245 from pmorissette/tkp/fut
Browse files Browse the repository at this point in the history
Cleanup, remove future, autofix ruff problems
  • Loading branch information
timkpaine authored Aug 6, 2024
2 parents f690c0c + 43ab7f6 commit 3cd56af
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
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

0 comments on commit 3cd56af

Please sign in to comment.