Skip to content

Commit

Permalink
Add Ruff CI action (#5)
Browse files Browse the repository at this point in the history
* add ruff CI

* lint fixes
  • Loading branch information
EarthModule authored Jul 30, 2024
1 parent e3ba24a commit cea11fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Ruff
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
6 changes: 3 additions & 3 deletions tests/unit/apps/files/models/test_file_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def file_storage_settings(settings):

def test_create_file_storage_basic():
storage = FileStorage.objects.create(storage_service="basic")
assert type(storage) == BasicFileStorage
assert isinstance(storage, BasicFileStorage)


def test_create_file_storage_basic_with_project():
Expand All @@ -32,7 +32,7 @@ def test_create_file_storage_basic_with_project():

def test_create_file_storage_project():
storage = FileStorage.objects.create(storage_service="csc_project", csc_project="x")
assert type(storage) == ProjectFileStorage
assert isinstance(storage, ProjectFileStorage)


def test_create_file_storage_project_without_project():
Expand All @@ -42,7 +42,7 @@ def test_create_file_storage_project_without_project():

def test_create_file_storage_ida():
storage = FileStorage.objects.create(storage_service="ida", csc_project="x")
assert type(storage) == IDAFileStorage
assert isinstance(storage, IDAFileStorage)


def test_create_file_storage_ida_without_project():
Expand Down

0 comments on commit cea11fe

Please sign in to comment.