Skip to content

Commit

Permalink
fix tox failures
Browse files Browse the repository at this point in the history
  • Loading branch information
n2ygk committed Dec 10, 2024
1 parent 17e6878 commit 62c942f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion myapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ class CourseViewSet(CourseBaseViewSet):
]



class CourseTermViewSet(CourseBaseViewSet):
__doc__ = CourseTerm.__doc__
queryset = CourseTerm.objects.all()
Expand Down Expand Up @@ -240,6 +239,7 @@ class PersonViewSet(CourseBaseViewSet):
filterset_fields = {}
search_fields = ("name", "instructor__course_terms__course__course_name")
ordering_fields = ["name"]

class Meta:
"""
In addition to specific filters defined above, also generate some automatic filters.
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
setuptools >= 75.6
# requirements for our app:
-r requirements-django.txt
# optional mysql requirements:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ commands =
isort --check-only --diff --skip migrations myapp oauth
python manage.py check
bandit --recursive myapp oauth
safety check --ignore 67599,70612 --full-report
safety scan --ignore 67599,70612 --full-report
coverage erase
coverage run --source='{toxinidir}/myapp' manage.py test
coverage html
Expand Down

0 comments on commit 62c942f

Please sign in to comment.