Skip to content
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
25 changes: 25 additions & 0 deletions .github/workflows/ruff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Ruff Linting

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff
- name: Analysing the code with ruff
run: |
cd stgraph/dataset/
ruff check .
cd ../../
15 changes: 15 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[FORMAT]

# Set the maximum line length to a value that suits your project
max-line-length = 120

[MESSAGES CONTROL]

# Disable specific messages by adding them to the "disable" option
disable=
line-too-long,
too-many-instance-attributes,
too-many-arguments,
import-error,
too-few-public-methods,
# Add more disabled messages here if needed
27 changes: 27 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[lint]
select = ["ALL"]

ignore = [
"FBT002",
"FBT001",
"PLR0913",
"TRY003",
"EM101",
"ERA001",
"S607",
"S602",
"PTH111",
"PTH110",
"PTH107",
"PTH123",
"S605",
"S310",
"FIX002",
"D203",
"D211",
"D212",
"D213",
]

[lint.per-file-ignores]
"__init__.py" = ["F401"]
152 changes: 0 additions & 152 deletions stgraph/dataset/EnglandCovidDataLoader.py

This file was deleted.

82 changes: 0 additions & 82 deletions stgraph/dataset/HungaryCPDataLoader.py

This file was deleted.

79 changes: 0 additions & 79 deletions stgraph/dataset/LinkPredDataLoader.py

This file was deleted.

Loading