Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-commit / update workflows / format files #13

Merged
merged 12 commits into from
Jun 26, 2024
5 changes: 3 additions & 2 deletions .github/workflows/before_merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
python3 -m venv venv
source venv/bin/activate
python3 -m pip config set global.extra-index-url https://download.pytorch.org/whl/cpu
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.txt
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.txt
python3 -m pip install pytest-github-report
- name: Run Tests
env:
pytest_verbosity: 2
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:

jobs:
validate-pr:
runs-on: ["in-service", "n150"]
runs-on: ubuntu-latest
steps:
- name: Skip run
run: echo "Empty check passed"
- name: Checkout
uses: actions/checkout@v4
- name: Black
uses: psf/[email protected]
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
__pycache__
venv
.vscode
stat
*.dot
*.svg
*.csv
*.csv
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.10.1
hooks:
- id: black
language_version: python3
5 changes: 3 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-r requirements.txt
pytest
pytest-github-report
pytest==7.2.2
pytest-timeout==2.2.0
pre-commit==3.0.4
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
torch==2.2.1.0+cpu
torchvision==0.17.1+cpu
tabulate
tabulate==0.9.0
networkx==3.1
graphviz
matplotlib
Loading