mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
formatting
This commit is contained in:
@@ -1,9 +1,12 @@
|
|||||||
"""Validate branding configuration variables."""
|
"""Validate branding configuration variables."""
|
||||||
|
|
||||||
|
# Standard Library Imports
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
# Third Party Imports
|
# Third Party Imports
|
||||||
from pydantic import StrictStr, StrictInt, StrictBool
|
from pydantic import StrictBool
|
||||||
|
from pydantic import StrictInt
|
||||||
|
from pydantic import StrictStr
|
||||||
from pydantic import constr
|
from pydantic import constr
|
||||||
from pydantic import validator
|
from pydantic import validator
|
||||||
from pydantic.color import Color
|
from pydantic.color import Color
|
||||||
|
@@ -23,6 +23,8 @@ LOG_LEVELS = [
|
|||||||
|
|
||||||
LOG_HANDLER = {"sink": sys.stdout, "format": LOG_FMT, "level": "INFO"}
|
LOG_HANDLER = {"sink": sys.stdout, "format": LOG_FMT, "level": "INFO"}
|
||||||
|
|
||||||
|
LOG_HANDLER_FILE = {"format": LOG_FMT, "level": "INFO"}
|
||||||
|
|
||||||
|
|
||||||
class Supported:
|
class Supported:
|
||||||
"""Define items supported by hyperglass.
|
"""Define items supported by hyperglass.
|
||||||
|
2
poetry.lock
generated
2
poetry.lock
generated
@@ -1147,7 +1147,7 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
|
|||||||
testing = ["pathlib2", "contextlib2", "unittest2"]
|
testing = ["pathlib2", "contextlib2", "unittest2"]
|
||||||
|
|
||||||
[metadata]
|
[metadata]
|
||||||
content-hash = "456456d2135e56c6669ef2c378df392d90f6ed3512076b32244cd383f94887b0"
|
content-hash = "7d1312826ff7571bc4864590d9428994768e179ea994fc7ee15e222bed8072ac"
|
||||||
python-versions = "^3.7"
|
python-versions = "^3.7"
|
||||||
|
|
||||||
[metadata.files]
|
[metadata.files]
|
||||||
|
@@ -58,6 +58,7 @@ flake8-return = "^1.1.1"
|
|||||||
pep8-naming = "^0.9.1"
|
pep8-naming = "^0.9.1"
|
||||||
flake8-docstrings = "^1.5.0"
|
flake8-docstrings = "^1.5.0"
|
||||||
pre-commit = "^1.21.0"
|
pre-commit = "^1.21.0"
|
||||||
|
mccabe = "^0.6.1"
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
line_length = 88
|
line_length = 88
|
||||||
|
18
setup.cfg
18
setup.cfg
@@ -7,14 +7,22 @@ exclude=.git, __pycache__,
|
|||||||
filename=*.py
|
filename=*.py
|
||||||
per-file-ignores=
|
per-file-ignores=
|
||||||
# Disable string length warnings so I can actually read the commands
|
# Disable string length warnings so I can actually read the commands
|
||||||
hyperglass/configuration/models/commands.py:E501
|
hyperglass/configuration/models/commands.py:E501,C0301
|
||||||
# Disable string length warnings so I can actually read the messages
|
# Disable string length warnings so I can actually read the messages
|
||||||
hyperglass/configuration/models/messages.py:E501
|
hyperglass/configuration/models/messages.py:E501,C0301
|
||||||
# Disable classmethod warning for validator decorators
|
# Disable classmethod warning for validator decorators
|
||||||
hyperglass/configuration/models/*.py:N805
|
hyperglass/configuration/models/*.py:N805,E0213,R0903
|
||||||
ignore=W503
|
ignore=W503,C0330,R504
|
||||||
select=B, C, D, E, F, I, II, N, P, PIE, S, W
|
select=B, BLK, C, D, E, F, I, II, N, P, PIE, S, R, W
|
||||||
disable-noqa=False
|
disable-noqa=False
|
||||||
hang-closing=False
|
hang-closing=False
|
||||||
max-complexity=10
|
max-complexity=10
|
||||||
# format=${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
|
# format=${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s
|
||||||
|
|
||||||
|
[isort]
|
||||||
|
line_length = 88
|
||||||
|
indent = ' '
|
||||||
|
force_single_line = true
|
||||||
|
import_heading_stdlib = "Standard Library Imports"
|
||||||
|
import_heading_thirdparty = "Third Party Imports"
|
||||||
|
import_heading_firstparty = "Project Imports"
|
Reference in New Issue
Block a user