From dda00868c7fd8db50d8b6472b2a6a8eeadcf2c04 Mon Sep 17 00:00:00 2001 From: Steven K Date: Tue, 12 Nov 2024 14:12:39 -0700 Subject: [PATCH] Remove encoding declaration. This was an oversight and not needed if it's UTF-8 Removed Flake 8 --- .flake8 | 12 ------------ .pre-commit-config.yaml | 1 - bootstrap_templatetags/__init__.py | 1 - .../templatetags/bootstrap_tags.py | 1 - bootstrap_templatetags/templatetags/easytag.py | 1 - bootstrap_templatetags/test.py | 1 - demo/demo/asgi.py | 1 - demo/demo/settings.py | 1 - demo/demo/settings_test.py | 2 -- demo/demo/urls.py | 1 - demo/demo/wsgi.py | 1 - demo/manage.py | 1 - pyproject.toml | 1 - 13 files changed, 25 deletions(-) delete mode 100644 .flake8 diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 8bc4501..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/* - */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/bootstrap_templatetags/__init__.py b/bootstrap_templatetags/__init__.py index 179b344..7be2e46 100644 --- a/bootstrap_templatetags/__init__.py +++ b/bootstrap_templatetags/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- __name__ = "bootstrap_templatetags" __author__ = "Pivotal Energy Solutions" __version_info__ = (2, 1, 36) diff --git a/bootstrap_templatetags/templatetags/bootstrap_tags.py b/bootstrap_templatetags/templatetags/bootstrap_tags.py index ffdbbb2..9271642 100644 --- a/bootstrap_templatetags/templatetags/bootstrap_tags.py +++ b/bootstrap_templatetags/templatetags/bootstrap_tags.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django import template from django.conf import settings from django.forms.utils import flatatt diff --git a/bootstrap_templatetags/templatetags/easytag.py b/bootstrap_templatetags/templatetags/easytag.py index 191ee21..3c9d369 100644 --- a/bootstrap_templatetags/templatetags/easytag.py +++ b/bootstrap_templatetags/templatetags/easytag.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from functools import partial, wraps from inspect import getfullargspec diff --git a/bootstrap_templatetags/test.py b/bootstrap_templatetags/test.py index a36b50a..8e0ea98 100644 --- a/bootstrap_templatetags/test.py +++ b/bootstrap_templatetags/test.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.template import Context, Template from django.test import SimpleTestCase diff --git a/demo/demo/asgi.py b/demo/demo/asgi.py index 23308a1..7488e02 100644 --- a/demo/demo/asgi.py +++ b/demo/demo/asgi.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ ASGI config for demo project. diff --git a/demo/demo/settings.py b/demo/demo/settings.py index 24c43f6..1a454ef 100644 --- a/demo/demo/settings.py +++ b/demo/demo/settings.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Django settings for demo project. diff --git a/demo/demo/settings_test.py b/demo/demo/settings_test.py index e979a65..4b90f54 100644 --- a/demo/demo/settings_test.py +++ b/demo/demo/settings_test.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import os import warnings diff --git a/demo/demo/urls.py b/demo/demo/urls.py index 8aea5aa..bbba294 100644 --- a/demo/demo/urls.py +++ b/demo/demo/urls.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """demo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: diff --git a/demo/demo/wsgi.py b/demo/demo/wsgi.py index ace457c..627d675 100644 --- a/demo/demo/wsgi.py +++ b/demo/demo/wsgi.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ WSGI config for demo project. diff --git a/demo/manage.py b/demo/manage.py index 4971875..ab5364a 100755 --- a/demo/manage.py +++ b/demo/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/pyproject.toml b/pyproject.toml index 912331d..33d7c88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -36,7 +36,6 @@ dependencies = [ test = [ "django-environ", "mysqlclient", - "flake8", "coverage", "pre-commit", "black",