Skip to content

Switch to ruff #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
- name: Poetry install
run: |
poetry lock --check
poetry install --extras tests --extras docs --extras annlibs
poetry install --with test,dev --extras annlibs

- name: Run test suite
run: |
poetry run pytest -v --color=yes

- name: Run black
- name: Run formatter
run: |
poetry run black --check sklearn_ann
poetry run black --check .

- name: Run flake8
- name: Run style checks
run: |
poetry run flake8 sklearn_ann
poetry run ruff .
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
__pycache__/
/*cache/
docs/_build/
activate.sh

Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import sphinx_rtd_theme


# -- Project information -----------------------------------------------------

project = "sklearn-ann"
Expand Down
5 changes: 2 additions & 3 deletions examples/rnn_dbscan_big.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
=======================================================
Demo of RnnDBSCAN clustering algorithm on large dataset
Expand All @@ -11,10 +10,10 @@

import numpy as np
from joblib import Memory
from sklearn import metrics
from sklearn.datasets import fetch_openml

from sklearn_ann.cluster.rnn_dbscan import simple_rnn_dbscan_pipeline
from sklearn.datasets import fetch_openml
from sklearn import metrics


# #############################################################################
Expand Down
4 changes: 1 addition & 3 deletions examples/rnn_dbscan_simple.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
===================================
Demo of RNN-DBSCAN clustering algorithm
Expand All @@ -12,12 +11,11 @@
print(__doc__)

import numpy as np

from sklearn_ann.cluster.rnn_dbscan import RnnDBSCAN
from sklearn import metrics
from sklearn.datasets import make_blobs
from sklearn.preprocessing import StandardScaler

from sklearn_ann.cluster.rnn_dbscan import RnnDBSCAN

# #############################################################################
# Generate sample data
Expand Down
Loading