Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
update linting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilo59 committed Jun 26, 2022
1 parent bb86ff7 commit 2855d0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
3 changes: 1 addition & 2 deletions blue_chip/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~~~~~~~~~~~~~~~~~~~~~
"""
import pkg_resources
from invoke import Collection, Program # pylint: disable=import-error
from invoke import Collection, Program

import blue_chip.tasks

Expand All @@ -26,7 +26,6 @@ def get_version(pkg_name=PACKAGE_NAME):

PKG_VERSION = get_version()

# pylint: disable=invalid-name
program = Program(
namespace=Collection.from_module(blue_chip.tasks),
name=PACKAGE_NAME,
Expand Down
8 changes: 3 additions & 5 deletions blue_chip/config/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
- line-too-long
# black conflict
- bad-continuation
options:
logging-format-style: "fstr"
pep8:
options:
Expand All @@ -28,7 +26,7 @@
# Multi-line docstring summary should start at the first line
- D212
""",
"bc_audit.yaml": f"""strictness: veryhigh
"bc_audit.yaml": """strictness: veryhigh
test-warnings: false
doc-warnings: true
Expand All @@ -53,7 +51,7 @@
disable:
- PYR18
""",
"bc_default.yaml": f"""strictness: veryhigh
"bc_default.yaml": """strictness: veryhigh
test-warnings: false
doc-warnings: true
Expand Down Expand Up @@ -85,7 +83,7 @@
pep257:
run: True
""",
"bc_tests.yaml": f"""inherits:
"bc_tests.yaml": """inherits:
- bc_default.yaml
strictness: high
Expand Down
15 changes: 6 additions & 9 deletions blue_chip/tasks/formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@

@task(
help={
"line-length": "How many characters per line to allow. [default: {}]".format(
constants.LINE_LENGTH
),
"line-length": "How many characters per line to allow."
f" [default: { constants.LINE_LENGTH}]",
"targets": "Paths/directories to format. [default: . ]",
},
)
Expand Down Expand Up @@ -51,9 +50,8 @@ def _fmt_cmd(line_length: int, targets: Union[str, List[str]]) -> str:
@task(
pre=[sort],
help={
"line-length": "How many characters per line to allow. [default: {}]".format(
constants.LINE_LENGTH
),
"line-length": "How many characters per line to allow."
f" [default: {constants.LINE_LENGTH}]",
"targets": "Paths/directories to format. [default: . ]",
},
)
Expand All @@ -65,9 +63,8 @@ def fmt(ctx, line_length=constants.LINE_LENGTH, targets="."):

@task(
help={
"line-length": "How many characters per line to allow. [default: {}]".format(
constants.LINE_LENGTH
),
"line-length": "How many characters per line to allow."
f" [default: {constants.LINE_LENGTH}]",
"targets": "Paths/directories to format. [default: . ]",
},
)
Expand Down

0 comments on commit 2855d0c

Please sign in to comment.