diff --git a/.github/workflows/black_format.yml b/.github/workflows/black_format.yml deleted file mode 100644 index 9969d6154..000000000 --- a/.github/workflows/black_format.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Format Python code with Black - -on: [pull_request] - -jobs: - black: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' # Set the Python version you want to use - - name: Install Black - run: pip install black - - name: Run Black Check - run: black --check . - - name: Run Black Format - if: failure() - run: | - black . --exclude '/(\.ipynb)/' # Exclude .ipynb files in formatting - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git commit -am "Apply Black Formatting" --allow-empty - git push origin HEAD:${{ github.head_ref }} # Push to the correct branch \ No newline at end of file diff --git a/mlxtend/classifier/tests/test_stacking_classifier.py b/mlxtend/classifier/tests/test_stacking_classifier.py index 6bca57ff0..d116b57dc 100644 --- a/mlxtend/classifier/tests/test_stacking_classifier.py +++ b/mlxtend/classifier/tests/test_stacking_classifier.py @@ -550,7 +550,7 @@ def test_decision_function(): if Version(sklearn_version) < Version("0.21"): assert scores_mean == 0.96, scores_mean - elif platform.system() == 'Darwin': + elif platform.system() == "Darwin": assert scores_mean == 0.93, scores_mean else: assert scores_mean == 0.94, scores_mean