Skip to content

Commit

Permalink
feat: added ruff in git workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 29, 2024
1 parent ab334ee commit dc9e8e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
curl --proto '=https' --tlsv1.2 -fsSL https://static.pantsbuild.org/setup/get-pants.sh | bash
pants package ::
- name: Checking formatting with Ruff
run: |
pip install ruff
ruff check --extend-ignore=D1
- name: Setup edX & Run Tests
run: |
cd ..
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ ignore = [
"D205",
"D301",
"D400",
"E902",
"N803",
"N806",
"N999",
Expand Down
2 changes: 1 addition & 1 deletion src/edx_sysadmin/management/commands/git_add_course.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Command(BaseCommand):
# versioned files. A branch is a sub grouping of a repository that
# has a specific version of the repository. A modulestore is the database used
# to store the courses for use on the Web site.
help = ( # noqa: A003
help = (
"Usage: "
"git_add_course repository_url [directory to check out into] [repository_branch] " # noqa: E501
"\n{}".format(
Expand Down

0 comments on commit dc9e8e7

Please sign in to comment.