Skip to content

Commit

Permalink
FIX-lux-org#471: Update black version and pin click version (lux-org#472
Browse files Browse the repository at this point in the history
)

* FIX-lux-org#464: Remove sh dependency

Signed-off-by: Labanya Mukhopadhyay <[email protected]>

* remove subprocess sh in conf

Signed-off-by: Labanya Mukhopadhyay <[email protected]>

* fixing black pre commit error

Signed-off-by: Labanya Mukhopadhyay <[email protected]>

* FIX-lux-org#471: update black version and pin click version

Signed-off-by: Labanya Mukhopadhyay <[email protected]>

* reformatted files with black

Signed-off-by: Labanya Mukhopadhyay <[email protected]>
  • Loading branch information
labanyamukhopadhyay authored Mar 30, 2022
1 parent 8f725c9 commit 98ae5ac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
- id: black
additional_dependencies: ['click==8.0.4']
2 changes: 1 addition & 1 deletion lux/vislib/altair/Histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,5 @@ def compute_bin_width(series):
data = np.asarray(series)
num_pts = data.size
IQR = np.subtract(*np.percentile(data, [75, 25]))
size = 2 * IQR * (num_pts ** -1 / 3)
size = 2 * IQR * (num_pts**-1 / 3)
return round(size * 3.5, 2)
2 changes: 1 addition & 1 deletion tests/test_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def test_id_music_data():


def test_id_absenteeism_data():
""" Tests whether an id named column is not recognized because even though it is named an id, it is not with its nature. """
"""Tests whether an id named column is not recognized because even though it is named an id, it is not with its nature."""
df = pd.read_csv("https://github.com/lux-org/lux-datasets/blob/master/data/absenteeism.csv?raw=true")
df.maintain_metadata()
assert df.data_type == {
Expand Down

0 comments on commit 98ae5ac

Please sign in to comment.