Skip to content

Commit

Permalink
ruff: GH Action and Reformat Files (#269)
Browse files Browse the repository at this point in the history
* Update `ruff` CLI parameter

Eliminates `warning: `ruff <path>` is deprecated. Use `ruff check <path>` instead.` as seen at https://github.com/bennylope/django-organizations/actions/runs/8222756016/job/22484618015#step:5:14

* Reformatting a few files with `ruff`
  • Loading branch information
mgrdcm authored Mar 18, 2024
1 parent cf0f8ef commit ea80a6c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
run: pip install .[linting]
- name: Run flake8
run: |
ruff .
ruff check .
ruff format --check .
isort src/organizations --check --diff
1 change: 1 addition & 0 deletions example/conf/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
framework.
"""

import os

from django.core.wsgi import get_wsgi_application
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Several nox tasks copied from the pipx project, Copyright (c) 2018 Chad Smith
"""

import os
import subprocess

Expand Down
1 change: 1 addition & 0 deletions src/organizations/backends/modeled.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Invitations that use an invitation model
"""

import email.utils
from typing import List # noqa
from typing import Optional # noqa
Expand Down
4 changes: 1 addition & 3 deletions tests/backends/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
"""
"""
""" """
1 change: 1 addition & 0 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tests for configurable fields
"""

import importlib

from django.core.exceptions import ImproperlyConfigured
Expand Down

1 comment on commit ea80a6c

@shulkareddyyagnam
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great repo!

Please sign in to comment.