Skip to content

Commit ed7ed3c

Browse files
Merge branch 'main' into feat/group-centrality-wip
2 parents 7904d20 + 3a64257 commit ed7ed3c

22 files changed

Lines changed: 2293 additions & 1458 deletions

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
run: cargo fmt --all -- --check
3838
- name: Clippy
3939
run: cargo clippy --workspace --all-targets -- -D warnings
40-
- name: Black Codestyle Format
41-
run: black --check --diff rustworkx tests
40+
- name: Ruff Codestyle Format
41+
run: ruff format --check --diff rustworkx tests
4242
- name: Python Lint
4343
run: ruff check rustworkx setup.py tests
4444
- name: Check stray release notes

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ cargo clippy --workspace --all-targets -- -D warnings
285285
286286
Python is used primarily for tests and some small pieces of packaging
287287
and namespace configuration code in the actual library.
288-
[black](https://github.com/psf/black) and [flake8](https://flake8.pycqa.org/en/latest/) are used to enforce consistent
288+
[ruff](https://github.com/astral-sh/ruff) is used to enforce consistent
289289
style in the python code in the repository. You can run them via Nox using:
290290
291291
```bash
@@ -295,7 +295,7 @@ nox -e lint
295295
This will also run `cargo fmt` in check mode to ensure that you ran `cargo fmt`
296296
and will fail if the Rust code doesn't conform to the style rules.
297297
298-
If black returns a code formatting error you can run `nox -e black` to automatically
298+
If ruff returns a code formatting error you can run `nox -e format` to automatically
299299
update the code formatting to conform to the style.
300300
301301
### Building documentation

0 commit comments

Comments
 (0)