Skip to content

Commit

Permalink
Fixed linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lorinkoz committed Feb 27, 2021
1 parent c893f30 commit fcaaa18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,23 @@ repos:
- id: check-symlinks
- id: check-toml
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- repo: local
hooks:
- id: black
name: black
entry: bash -c 'poetry run black $1'
entry: bash -c 'poetry run black $@'
language: system
types: [python]
- id: isort
name: isort
entry: bash -c 'poetry run isort $1'
entry: bash -c 'poetry run isort $@'
language: system
types: [python]
- id: flake8
name: flake8
entry: bash -c 'poetry run flake8 $1'
entry: bash -c 'poetry run flake8 $@'
language: system
types: [python]
2 changes: 1 addition & 1 deletion djsc_sandbox/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
except ImportError:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
Expand Down

0 comments on commit fcaaa18

Please sign in to comment.