Skip to content

Commit b467056

Browse files
authored
Merge pull request #8 from octoenergy/linting-failures
Update flake8 version
2 parents 69ebc27 + 6e5b0e8 commit b467056

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

setup.cfg

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,25 @@
22
universal=1
33

44
[flake8]
5-
ignore = F405,W391,W503,E501
5+
# Ignored flake8 rules
6+
#
7+
# E203 - Colons should not have any space before them (https://www.flake8rules.com/rules/E203.html).
8+
# Ignoring this can make some code more readable.
9+
# E501 - Line length should be less than 79 chars (https://www.flake8rules.com/rules/E501.html).
10+
# We don't need flake8 to check this as black determines line formatting.
11+
# F541 - f-strings without any placeholders (https://flake8.pycqa.org/en/latest/user/error-codes.html).
12+
# W391 - There should be one, and only one, blank line at the end of each file (https://www.flake8rules.com/rules/W391.html).
13+
# W503 - Line breaks should occur after the binary operator to keep all variable names aligned (https://www.flake8rules.com/rules/W503.html).
14+
# W504 - Line breaks should occur before the binary operator to keep all operators aligned (https://www.flake8rules.com/rules/W504.html)
15+
ignore = E203,E501,F541,W391,W503,W504,K204,K202
16+
17+
# Ignore unused imports (F401) in __init__ modules as these are convenience imports.
18+
per-file-ignores =
19+
*/__init__.py:F401
20+
21+
# Enable log format extension checks.
22+
# See https://github.com/globality-corp/flake8-logging-format#violations-detected
23+
enable-extensions=G
24+
25+
exclude =
26+
.*/*.py

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from codecs import open
22
from os import path
33

4-
from setuptools import find_packages, setup
4+
from setuptools import setup
55

66
REPO_ROOT = path.abspath(path.dirname(__file__))
77

@@ -39,7 +39,7 @@
3939
extras_require={
4040
"dev": ["wheel==0.29.0", "twine==1.8.1", "black==22.3.0", "isort==5.10.1"],
4141
"test": [
42-
"flake8==3.0.4",
42+
"flake8==4.0.1",
4343
"pytest==7.0.1",
4444
"pytest-django==4.5.2",
4545
"hypothesis==5.49.0",

xocto/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from django.contrib.auth import models as auth_models
88
from django.db import models
9+
from django.db.models.expressions import Combinable
910
from django.http import HttpRequest
1011
from typing_extensions import Protocol
1112

0 commit comments

Comments
 (0)