Skip to content

Commit 047f91c

Browse files
Merge pull request #20 from FeatureLabs/misc-cleanup
Various small repo updates
2 parents ff0e557 + 2bea940 commit 047f91c

File tree

9 files changed

+16
-9
lines changed

9 files changed

+16
-9
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
name: Lint Tests
4141
command: |
4242
source python/bin/activate
43-
make -C package lint-tests --makefile ../Makefile
43+
make -C package lint --makefile ../Makefile
4444
4545
Unit Tests:
4646
parameters:
@@ -59,7 +59,7 @@ jobs:
5959
name: Unit Tests
6060
command: |
6161
source python/bin/activate
62-
make -C package unit-tests --makefile ../Makefile
62+
pytest autonormalize/
6363
- when:
6464
condition: << parameters.codecov >>
6565
steps:

Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
1+
.PHONY: entry-point-test
12
entry-point-test:
23
cd ~ && python -c "from featuretools import autonormalize"
34

5+
.PHONY: lint-fix
46
lint-fix:
57
select="E225,E303,E302,E203,E128,E231,E251,E271,E127,E126,E301,W291,W293,E226,E306,E221"
68
autopep8 --in-place --recursive --max-line-length=100 --select=${select} autonormalize
79
isort --recursive autonormalize
810

9-
lint-tests:
11+
.PHONY: lint
12+
lint:
1013
flake8 autonormalize
1114
isort --check-only --recursive autonormalize
1215

13-
unit-tests:
14-
coverage erase
15-
pytest --cov=autonormalize --cache-clear --show-capture=stderr -vv
16+
.PHONY: test
17+
test: lint
18+
pytest autonormalize/
19+
20+
.PHONY: testcoverage
21+
testcoverage: lint
22+
pytest autonormalize/ --cov=autonormalize

autonormalize/.DS_Store

-10 KB
Binary file not shown.

autonormalize/demos/.DS_Store

-6 KB
Binary file not shown.

autonormalize/examples/.DS_Store

-6 KB
Binary file not shown.

autonormalize/tests/.DS_Store

-6 KB
Binary file not shown.

autonormalize/tests/test_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_ft_mock_customer():
1414
entityset = an.auto_entityset(df, name="Customer Transactions", time_index='transaction_time')
1515

1616
assert set(entityset['transaction_id'].df.columns) == set(['transaction_id', 'session_id', 'transaction_time',
17-
'product_id', 'amount'])
17+
'product_id', 'amount'])
1818

1919
assert set(entityset['product_id'].df.columns) == set(['product_id', 'brand'])
2020

autonormalize/tests/test_normalize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pandas as pd
2-
from pandas.util.testing import assert_frame_equal
2+
from pandas.testing import assert_frame_equal
33

44
from autonormalize import classes, normalize
55

@@ -123,7 +123,7 @@ def test_normalize_dataframe():
123123
assert len(new_dfs) == 3
124124

125125
dic_one = {'team': ['Red', 'Red', 'Red', 'Orange', 'Orange', 'Yellow',
126-
'Yellow', 'Green', 'Green', 'Blue'],
126+
'Yellow', 'Green', 'Green', 'Blue'],
127127
'jersey_num': [1, 2, 3, 1, 2, 1, 5, 8, 2, 2],
128128
'player_name': ['A', 'B', 'C', 'D', 'A', 'E', 'B', 'A', 'G', 'H']}
129129

docs/.DS_Store

-6 KB
Binary file not shown.

0 commit comments

Comments
 (0)