Skip to content

Commit bbe5ecc

Browse files
Merge pull request #101 from bfGraph/dataset-abstraction
🧹 Lint Fixes for the data loaders
2 parents 58e5533 + e148e36 commit bbe5ecc

28 files changed

Lines changed: 744 additions & 1394 deletions

.github/workflows/ruff.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Ruff Linting
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.8"]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install ruff
21+
- name: Analysing the code with ruff
22+
run: |
23+
cd stgraph/dataset/
24+
ruff check .
25+
cd ../../

.pylintrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[FORMAT]
2+
3+
# Set the maximum line length to a value that suits your project
4+
max-line-length = 120
5+
6+
[MESSAGES CONTROL]
7+
8+
# Disable specific messages by adding them to the "disable" option
9+
disable=
10+
line-too-long,
11+
too-many-instance-attributes,
12+
too-many-arguments,
13+
import-error,
14+
too-few-public-methods,
15+
# Add more disabled messages here if needed

ruff.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[lint]
2+
select = ["ALL"]
3+
4+
ignore = [
5+
"FBT002",
6+
"FBT001",
7+
"PLR0913",
8+
"TRY003",
9+
"EM101",
10+
"ERA001",
11+
"S607",
12+
"S602",
13+
"PTH111",
14+
"PTH110",
15+
"PTH107",
16+
"PTH123",
17+
"S605",
18+
"S310",
19+
"FIX002",
20+
"D203",
21+
"D211",
22+
"D212",
23+
"D213",
24+
]
25+
26+
[lint.per-file-ignores]
27+
"__init__.py" = ["F401"]

stgraph/dataset/EnglandCovidDataLoader.py

Lines changed: 0 additions & 152 deletions
This file was deleted.

stgraph/dataset/HungaryCPDataLoader.py

Lines changed: 0 additions & 82 deletions
This file was deleted.

stgraph/dataset/LinkPredDataLoader.py

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)