Skip to content

Commit 71fd1bd

Browse files
Satish615Satish Gollaprolu
andauthored
chore: add support for python 3.10 in smclarify (#139)
* add support for python 3.10 in smclarify * update smclarify to 0.4 version * fix typeerror with sns.countplot in example notebooks --------- Co-authored-by: Satish Gollaprolu <[email protected]>
1 parent 1edaf23 commit 71fd1bd

File tree

5 files changed

+31
-5
lines changed

5 files changed

+31
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.8, 3.7, 3.9]
13+
python-version: ['3.8', '3.7', '3.9', '3.10']
1414
steps:
1515
- uses: actions/checkout@v2
1616
- name: Set up Python ${{ matrix.python-version }}
@@ -50,3 +50,28 @@ jobs:
5050
- name: Generate documentation
5151
run: |
5252
./devtool docs
53+
54+
test_coverage-python-310:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v2
58+
- name: Set up Python ${{ matrix.python-version }}
59+
uses: actions/setup-python@v2
60+
with:
61+
python-version: '3.10'
62+
63+
- name: Install dependencies
64+
run: |
65+
./devtool install_deps_dev
66+
67+
- name: Run pre-commit checks and lint
68+
run: |
69+
./devtool lint
70+
71+
- name: Test with code coverage
72+
run: |
73+
./devtool test_with_coverage
74+
75+
- name: Generate documentation
76+
run: |
77+
./devtool docs

examples/Bias_metrics_usage.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
}
176176
],
177177
"source": [
178-
"sns.countplot(df, x='ForeignWorker')"
178+
"sns.countplot(data=df, x='ForeignWorker')"
179179
]
180180
},
181181
{

examples/Bias_metrics_usage_marketing.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
},
9999
"outputs": [],
100100
"source": [
101-
"sns.countplot(df, x='y')"
101+
"sns.countplot(data=df, x='y')"
102102
]
103103
},
104104
{

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
setup(
3535
name="smclarify",
36-
version="0.3",
36+
version="0.4",
3737
packages=find_packages("src"),
3838
package_dir={"": "src"},
3939
package_data={"smclarify": data_files},
@@ -50,5 +50,6 @@
5050
"Programming Language :: Python :: 3.7",
5151
"Programming Language :: Python :: 3.8",
5252
"Programming Language :: Python :: 3.9",
53+
"Programming Language :: Python :: 3.10",
5354
],
5455
)

src/smclarify/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.3"
1+
__version__ = "0.4"

0 commit comments

Comments
 (0)