Skip to content

Commit ae0410a

Browse files
Merge pull request #142 from bfGraph/develop
📦 STGraph v1.1.0
2 parents 54d364f + 25b6c64 commit ae0410a

199 files changed

Lines changed: 7553 additions & 2337 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pytest.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Unit Test via Pytest
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.8"]
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -e .[dev]
22+
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
23+
- name: Test with pytest
24+
run: |
25+
coverage run -m pytest -v -s -p no:warnings
26+
- name: Generate Coverage Report
27+
run: |
28+
coverage report -m

.github/workflows/ruff.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 ../../
26+
cd stgraph/graph
27+
ruff check .
28+
cd ../../
29+
cd stgraph/utils
30+
ruff check .
31+
cd ../../
32+
cd stgraph/nn/pytorch/static
33+
ruff check gcn_conv.py
34+
cd ../../../../

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ benchmarking/results/
1313
*.egg-info/
1414
stgraph/build/
1515
stgraph/dist/
16+
dev-stgraph/
1617
docs/_build
18+
docs_old/
19+
docs_v2/
1720
__pycache__/
1821
.DS_Store
1922
build
@@ -25,4 +28,9 @@ dist
2528
*.svg
2629
*.json
2730
*.npy
28-
dev-stgraph/
31+
.coverage
32+
dev-stgraph/
33+
htmlconv/
34+
*.txt
35+
egl_kernel.cu
36+
egl_kernel.ptx

.idea/STGraph.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.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

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ build:
1313

1414
# Build documentation in the "docs/" directory with Sphinx
1515
sphinx:
16-
configuration: docs/conf.py
16+
configuration: docs/source/conf.py
1717

1818
# Optional but recommended, declare the Python requirements required
1919
# to build your documentation
2020
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
2121
python:
2222
install:
23-
- requirements: requirements.txt
23+
- requirements: docs/requirements.txt
2424
- method: pip
2525
path: .

0 commit comments

Comments
 (0)