Skip to content

Commit

Permalink
chore: updated pre-commit hooks and contributors list
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed May 7, 2024
1 parent df91f3c commit a73ea5c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,24 @@
"contributions": [
"code"
]
},
{
"login": "rmmaf",
"name": "Rodrigo Monteiro de Moraes de Arruda Falcão",
"avatar_url": "https://avatars.githubusercontent.com/u/23747884?v=4",
"profile": "https://www.linkedin.com/in/rmmaf/",
"contributions": [
"code"
]
},
{
"login": "Kreijstal",
"name": "Kreijstal",
"avatar_url": "https://avatars.githubusercontent.com/u/2415206?v=4",
"profile": "https://github.com/Kreijstal",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ repos:
rev: v4.6.0
hooks:
- id: end-of-file-fixer
exclude: ^tests/drawing/plotly/baseline_images
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
</tr>
<tr>
<td align="center"><a href="https://davidrconnell.github.io/"><img src="https://avatars.githubusercontent.com/u/35470740?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David R. Connell</b></sub></a><br /><a href="https://github.com/igraph/python-igraph/commits?author=DavidRConnell" title="Code">💻</a></td>
<td align="center"><a href="https://www.linkedin.com/in/rmmaf/"><img src="https://avatars.githubusercontent.com/u/23747884?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rodrigo Monteiro de Moraes de Arruda Falcão</b></sub></a><br /><a href="https://github.com/igraph/python-igraph/commits?author=rmmaf" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/Kreijstal"><img src="https://avatars.githubusercontent.com/u/2415206?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kreijstal</b></sub></a><br /><a href="https://github.com/igraph/python-igraph/commits?author=Kreijstal" title="Code">💻</a></td>
</tr>
</table>

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ from Homebrew.
Due to the lack of support of `pkg-config` on MSVC, it is currently not
possible to build against an external library on MSVC.

In case you are already using a MSYS2/[MinGW](https://www.mingw-w64.org/) and already have
In case you are already using a MSYS2/[MinGW](https://www.mingw-w64.org/) and already have
[mingw-w64-igraph](https://packages.msys2.org/base/mingw-w64-igraph) installed,
simply type:
simply type:
```
IGRAPH_USE_PKG_CONFIG=1 SETUPTOOLS_USE_DISTUTILS=stdlib pip install igraph
```
Expand Down
2 changes: 1 addition & 1 deletion src/_igraph/graphobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2320,7 +2320,7 @@ PyObject *igraphmodule_Graph_Establishment(PyTypeObject * type,
"Error while converting type distribution vector");
return NULL;
}

if (igraphmodule_PyObject_to_matrix_t(pref_matrix, &pm, "pref_matrix")) {
igraph_vector_destroy(&td);
return NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/igraph/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __isub__(self, other):
for i in range(len(row)):
row[i] -= other
return self

def __len__(self):
"""Returns the number of rows in the matrix."""
return len(self._data)
Expand Down
2 changes: 1 addition & 1 deletion tests/drawing/matplotlib/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_graph_with_curved_edges(self):
ax.set_aspect(1.0)

@image_comparison(baseline_images=["multigraph_with_curved_edges_undirected"])
def test_graph_with_curved_edges(self):
def test_graph_with_curved_edges_undirected(self):
plt.close("all")
g = Graph.Ring(24, directed=False)
g.add_edges([(0, 1), (1, 2)])
Expand Down

0 comments on commit a73ea5c

Please sign in to comment.