Skip to content

Commit

Permalink
Use Ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dustalov committed Nov 17, 2023
1 parent e0bb8b8 commit 0329b0e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .flake8

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
run: python3 -c 'import networkx as nx; nx.write_weighted_edgelist(nx.karate_club_graph(), "karate_club.tsv", delimiter="\t")'
- name: Lint with Mypy
run: mypy chinese_whispers
- name: Lint with flake8
run: flake8
- name: Lint with Ruff
uses: chartboost/ruff-action@v1
- name: Test with unittest
run: python3 -m unittest discover
- name: Run Module
Expand Down
12 changes: 6 additions & 6 deletions chinese_whispers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
An implementation of the Chinese Whispers clustering algorithm.
"""

__version__ = '0.8.2.post2'
__author__ = 'Dmitry Ustalov'
__credits__ = ['Alexander Panchenko', 'Alexander Chambers', 'Frederik Wille']
__copyright = 'Copyright 2018-2023 Dmitry Ustalov'
__license__ = 'MIT'

from .chinese_whispers import (
WEIGHTING,
top_weighting,
Expand All @@ -20,6 +14,12 @@
aggregate_clusters
)

__version__ = '0.8.2.post2'
__author__ = 'Dmitry Ustalov'
__credits__ = ['Alexander Panchenko', 'Alexander Chambers', 'Frederik Wille']
__copyright = 'Copyright 2018-2023 Dmitry Ustalov'
__license__ = 'MIT'

__all__ = [
'__version__',
'WEIGHTING',
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ dev = [
"mypy",
"notebook",
"matplotlib",
"flake8",
"twine",
"build"
"build",
"ruff"
]
docs = [
"mkdocs-material",
Expand Down

0 comments on commit 0329b0e

Please sign in to comment.