diff --git a/.flake8 b/.flake8 deleted file mode 100644 index bf2058e..0000000 --- a/.flake8 +++ /dev/null @@ -1,12 +0,0 @@ -[flake8] -ignore = E203, E266, E501, W503, F403, F401 -max-line-length = 120 -max-complexity = 18 -select = B,C,E,F,W,T4,B9 -exclude = - .venv/* - demo_app/* - */migrations/* - */tests/* - manage.py - setup.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5c91c8..237b53d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,6 @@ repos: - id: check-merge-conflict - id: check-symlinks - id: detect-private-key - - id: fix-encoding-pragma - id: end-of-file-fixer exclude: .idea/.*|.*\.blg|.*\.json|.*\.dat - id: trailing-whitespace diff --git a/demo_app/demo_app/settings.py b/demo_app/demo_app/settings.py index 93b82b3..df9b7b8 100644 --- a/demo_app/demo_app/settings.py +++ b/demo_app/demo_app/settings.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Django settings for demo_app project. diff --git a/demo_app/demo_app/settings_test.py b/demo_app/demo_app/settings_test.py index 15d9e47..d6bf119 100644 --- a/demo_app/demo_app/settings_test.py +++ b/demo_app/demo_app/settings_test.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import os import warnings diff --git a/demo_app/demo_app/urls.py b/demo_app/demo_app/urls.py index a2aa127..923ee29 100644 --- a/demo_app/demo_app/urls.py +++ b/demo_app/demo_app/urls.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """demo_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: diff --git a/demo_app/demo_app/wsgi.py b/demo_app/demo_app/wsgi.py index fbd223e..8161f94 100644 --- a/demo_app/demo_app/wsgi.py +++ b/demo_app/demo_app/wsgi.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ WSGI config for demo_app project. diff --git a/demo_app/manage.py b/demo_app/manage.py index fc82a5d..53838e9 100755 --- a/demo_app/manage.py +++ b/demo_app/manage.py @@ -1,5 +1,4 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- """Django's command-line utility for administrative tasks.""" import os diff --git a/django_states/__init__.py b/django_states/__init__.py index 8d61c80..fee45cf 100644 --- a/django_states/__init__.py +++ b/django_states/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ State engine for django models. diff --git a/django_states/compat.py b/django_states/compat.py index ec963ef..a7c408a 100644 --- a/django_states/compat.py +++ b/django_states/compat.py @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- - - def curry(_curried_func, *args, **kwargs): def _curried(*moreargs, **morekwargs): return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs}) diff --git a/django_states/conf.py b/django_states/conf.py index 9e21a02..36f1211 100644 --- a/django_states/conf.py +++ b/django_states/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Configuration options""" from django.conf import settings diff --git a/django_states/exceptions.py b/django_states/exceptions.py index aacf0c0..392d45b 100644 --- a/django_states/exceptions.py +++ b/django_states/exceptions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Declared Exceptions""" diff --git a/django_states/fields.py b/django_states/fields.py index a11ab32..b86b3d3 100644 --- a/django_states/fields.py +++ b/django_states/fields.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Fields used""" __all__ = ("StateField",) diff --git a/django_states/log.py b/django_states/log.py index fd774b7..14d8dfd 100644 --- a/django_states/log.py +++ b/django_states/log.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """log model""" import json diff --git a/django_states/machine.py b/django_states/machine.py index 6ec97af..b5fcc9d 100644 --- a/django_states/machine.py +++ b/django_states/machine.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """State Machine""" __all__ = ("StateMachine", "StateDefinition", "StateTransition") diff --git a/django_states/management/commands/graph_states2.py b/django_states/management/commands/graph_states2.py index d86af5a..e9991d9 100644 --- a/django_states/management/commands/graph_states2.py +++ b/django_states/management/commands/graph_states2.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import logging from optparse import make_option diff --git a/django_states/model_methods.py b/django_states/model_methods.py index 86c39a7..d881ad6 100644 --- a/django_states/model_methods.py +++ b/django_states/model_methods.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Model Methods""" import json diff --git a/django_states/models.py b/django_states/models.py index 4623f6f..23cfcae 100644 --- a/django_states/models.py +++ b/django_states/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Models""" import six diff --git a/django_states/signals.py b/django_states/signals.py index 1319eb4..8a57392 100644 --- a/django_states/signals.py +++ b/django_states/signals.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Signals""" import django.dispatch diff --git a/django_states/templatetags/django_states.py b/django_states/templatetags/django_states.py index e138706..819ee41 100644 --- a/django_states/templatetags/django_states.py +++ b/django_states/templatetags/django_states.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.template import Node, Variable from django.template import Library diff --git a/django_states/tests/test_state_machine.py b/django_states/tests/test_state_machine.py index d0bcb07..ee72735 100644 --- a/django_states/tests/test_state_machine.py +++ b/django_states/tests/test_state_machine.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Tests""" from django.contrib.auth.models import User diff --git a/django_states/urls.py b/django_states/urls.py index d7836df..18b1b09 100644 --- a/django_states/urls.py +++ b/django_states/urls.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Urls""" from django.urls import path diff --git a/django_states/views.py b/django_states/views.py index 63d636f..167edef 100644 --- a/django_states/views.py +++ b/django_states/views.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Views""" from django.apps import apps diff --git a/pyproject.toml b/pyproject.toml index d4eb59f..a446b8d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,6 @@ dependencies = [ test = [ "django-environ", "mysqlclient", - "flake8", "coverage", "pre-commit", "black",