Skip to content

Commit cc2de36

Browse files
author
Joachim Jablon
committed
Fix lint
1 parent 64199a6 commit cc2de36

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ clean-pyc: ## remove Python file artifacts
1717
find . -name '*~' -exec rm -f {} +
1818

1919
lint: ## check style with flake8
20-
flake8 django_readonly_field tests
20+
flake8 --exclude="migrations,.tox,docs,build" .
2121

2222
test: ## run tests quickly with the default Python
2323
python runtests.py

django_readonly_field/compiler.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
from django.db.models.sql.compiler import SQLCompiler
2-
from django.db.models.sql.compiler import SQLInsertCompiler as BaseSQLInsertCompiler
2+
from django.db.models.sql.compiler import SQLInsertCompiler as BaseSQLInsertCompiler # noqa
33
from django.db.models.sql.compiler import SQLDeleteCompiler
4-
from django.db.models.sql.compiler import SQLUpdateCompiler as BaseSQLUpdateCompiler
4+
from django.db.models.sql.compiler import SQLUpdateCompiler as BaseSQLUpdateCompiler # noqa
55
from django.db.models.sql.compiler import SQLAggregateCompiler
66

7+
SQLCompiler = SQLCompiler
8+
SQLDeleteCompiler = SQLDeleteCompiler
9+
SQLAggregateCompiler = SQLAggregateCompiler
10+
711

812
class ReadOnlySQLCompilerMixin(object):
913

0 commit comments

Comments
 (0)