Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#3342)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.8.3 → v0.8.4](astral-sh/ruff-pre-commit@v0.8.3...v0.8.4)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Dec 24, 2024
1 parent 85bd1d0 commit ecfbeab
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ repos:
- --exclude-files
- "_test.js$"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.3"
rev: "v0.8.4"
hooks:
- id: ruff-format
- id: ruff
Expand Down
8 changes: 4 additions & 4 deletions cms/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def _assert_faculty_members(obj):

def test_course_page_testimonials():
"""
testimonials property should return expected value if associated with a CoursePage
Testimonials property should return expected value if associated with a CoursePage
"""
course_page = CoursePageFactory.create()
assert UserTestimonialsPage.can_create_at(course_page)
Expand All @@ -571,7 +571,7 @@ def test_course_page_testimonials():

def test_external_course_page_testimonials():
"""
testimonials property should return expected value if associated with an ExternalCoursePage
Testimonials property should return expected value if associated with an ExternalCoursePage
"""
external_course_page = ExternalCoursePageFactory.create()
assert UserTestimonialsPage.can_create_at(external_course_page)
Expand All @@ -596,7 +596,7 @@ def test_external_course_page_testimonials():

def test_program_page_testimonials():
"""
testimonials property should return expected value if associated with a ProgramPage
Testimonials property should return expected value if associated with a ProgramPage
"""
program_page = ProgramPageFactory.create()
assert UserTestimonialsPage.can_create_at(program_page)
Expand All @@ -621,7 +621,7 @@ def test_program_page_testimonials():

def test_external_program_page_testimonials():
"""
testimonials property should return expected value if associated with an ExternalProgramPage
Testimonials property should return expected value if associated with an ExternalProgramPage
"""
external_program_page = ExternalProgramPageFactory.create()
assert UserTestimonialsPage.can_create_at(external_program_page)
Expand Down
4 changes: 2 additions & 2 deletions courses/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def test_external_courseware_marketing_url():

def test_program_page():
"""
page property should return an associated Wagtail page if one exists
Page property should return an associated Wagtail page if one exists
"""
program = ProgramFactory.create(page=None)
assert program.page is None
Expand Down Expand Up @@ -552,7 +552,7 @@ def test_course_is_catalog_visible():

def test_course_page():
"""
page property should return an associated Wagtail page if one exists
Page property should return an associated Wagtail page if one exists
"""
course = CourseFactory.create(page=None)
assert course.page is None
Expand Down
2 changes: 1 addition & 1 deletion ecommerce/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ def test_validate_basket_product_requires_enrollment_code(basket_and_coupons):

def test_apply_coupon_to_product_requires_enrollment_code(user, basket_and_coupons):
"""
if product that requires enrollment code, a promo coupon is not valid and can't be applied in checkout;
If product that requires enrollment code, a promo coupon is not valid and can't be applied in checkout;
An enrollment code is valid if it's eligible for the product
"""

Expand Down
2 changes: 1 addition & 1 deletion ecommerce/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_type_string():

def test_title():
"""
title should return a string representation of the Product's title
Title should return a string representation of the Product's title
"""
program = ProgramFactory.create(title="test title of the program")
course = CourseFactory.create(title="test title of the course")
Expand Down
2 changes: 1 addition & 1 deletion users/management/commands/block_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Command(BaseCommand):

def create_parser(self, prog_name, subcommand):
"""
create parser to add new line in help text.
Create parser to add new line in help text.
"""
parser = super().create_parser(prog_name, subcommand)
parser.formatter_class = RawTextHelpFormatter
Expand Down
2 changes: 1 addition & 1 deletion users/management/commands/retire_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Command(BaseCommand):

def create_parser(self, prog_name, subcommand):
"""
create parser to add new line in help text.
Create parser to add new line in help text.
"""
parser = super().create_parser(prog_name, subcommand)
parser.formatter_class = RawTextHelpFormatter
Expand Down
2 changes: 1 addition & 1 deletion users/management/commands/unblock_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Command(BaseCommand):

def create_parser(self, prog_name, subcommand):
"""
create parser to add new line in help text.
Create parser to add new line in help text.
"""
parser = super().create_parser(prog_name, subcommand)
parser.formatter_class = RawTextHelpFormatter
Expand Down

0 comments on commit ecfbeab

Please sign in to comment.