mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Add flynt and --cov-report=term-missing
This commit is contained in:
parent
7aabc88e4a
commit
f241ae971a
@ -889,10 +889,7 @@ class DataFrame(NDFrame):
|
|||||||
counts = self.count()
|
counts = self.count()
|
||||||
if len(cols) != len(counts): # pragma: no cover
|
if len(cols) != len(counts): # pragma: no cover
|
||||||
raise AssertionError(
|
raise AssertionError(
|
||||||
"Columns must equal counts "
|
f"Columns must equal counts ({len(cols):d} != {len(counts):d})"
|
||||||
"({cols:d} != {counts:d})".format(
|
|
||||||
cols=len(cols), counts=len(counts)
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
count_header = "Non-Null Count"
|
count_header = "Non-Null Count"
|
||||||
len_count = len(count_header)
|
len_count = len(count_header)
|
||||||
|
10
noxfile.py
10
noxfile.py
@ -55,10 +55,11 @@ TYPED_FILES = (
|
|||||||
|
|
||||||
@nox.session(reuse_venv=True)
|
@nox.session(reuse_venv=True)
|
||||||
def format(session):
|
def format(session):
|
||||||
session.install("black", "isort")
|
session.install("black", "isort", "flynt")
|
||||||
session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES)
|
session.run("python", "utils/license-headers.py", "fix", *SOURCE_FILES)
|
||||||
|
session.run("flynt", *SOURCE_FILES)
|
||||||
session.run("black", "--target-version=py37", *SOURCE_FILES)
|
session.run("black", "--target-version=py37", *SOURCE_FILES)
|
||||||
session.run("isort", *SOURCE_FILES)
|
session.run("isort", "--profile=black", *SOURCE_FILES)
|
||||||
lint(session)
|
lint(session)
|
||||||
|
|
||||||
|
|
||||||
@ -70,7 +71,7 @@ def lint(session):
|
|||||||
session.install("--pre", "elasticsearch")
|
session.install("--pre", "elasticsearch")
|
||||||
session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES)
|
session.run("python", "utils/license-headers.py", "check", *SOURCE_FILES)
|
||||||
session.run("black", "--check", "--target-version=py37", *SOURCE_FILES)
|
session.run("black", "--check", "--target-version=py37", *SOURCE_FILES)
|
||||||
session.run("isort", "--check", *SOURCE_FILES)
|
session.run("isort", "--check", "--profile=black", *SOURCE_FILES)
|
||||||
session.run("flake8", "--ignore=E501,W503,E402,E712,E203", *SOURCE_FILES)
|
session.run("flake8", "--ignore=E501,W503,E402,E712,E203", *SOURCE_FILES)
|
||||||
|
|
||||||
# TODO: When all files are typed we can change this to .run("mypy", "--strict", "eland/")
|
# TODO: When all files are typed we can change this to .run("mypy", "--strict", "eland/")
|
||||||
@ -107,8 +108,7 @@ def test(session, pandas_version: str):
|
|||||||
"python",
|
"python",
|
||||||
"-m",
|
"-m",
|
||||||
"pytest",
|
"pytest",
|
||||||
"--cov-report",
|
"--cov-report=term-missing",
|
||||||
"term-missing",
|
|
||||||
"--cov=eland/",
|
"--cov=eland/",
|
||||||
"--cov-config=setup.cfg",
|
"--cov-config=setup.cfg",
|
||||||
"--doctest-modules",
|
"--doctest-modules",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user