Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation and bundles fixes #2763

Merged
merged 15 commits into from Sep 3, 2020
Merged

Documentation and bundles fixes #2763

merged 15 commits into from Sep 3, 2020

Conversation

richafrank
Copy link
Member

Before:
image

After:
image

Before:
image

After:
image

(before is not None and dt < before) or
(after is not None and dt > after)
(before is None or dt < before) and
(after is None or dt > after)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@llllllllll What is the intended way to clean out all the ingestions for a bundle? I tried with no args, but nothing happened. However, my change looks to fail the relevant test...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to pass either --before, --after or --keep-last to specify which ingests you would like to delete.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, ok, that was my confusion. I expected that passing none of them would delete everything.

(before is not None and dt < before) or
(after is not None and dt > after)
(before is None or dt < before) and
(after is None or dt > after)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why invert all of these conditions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was my attempt to fix the noop clean commands (when I passed no args). I'll instead raise BadClean in that case.

@@ -72,7 +72,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['.static']
html_static_path = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we not have any images or anything?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not there at least. We have 2 pngs in docs/tutorial_files.

Running Sphinx v3.1.2
making output directory... done
WARNING: html_static_path entry '.static' does not exist

@@ -317,13 +320,6 @@ def run(ctx,
benchmark_spec=benchmark_spec,
)

if output == '-':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why can we remove this logic?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The final lines of _run (called above) are:

    if output == '-':
        click.echo(str(perf))
    elif output != os.devnull:  # make the zipline magic not write any data
        perf.to_pickle(output)

    return perf

@@ -112,6 +112,9 @@ def _(*args, **kwargs):
return d


DEFAULT_BUNDLE = 'quantopian-quandl'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@coveralls
Copy link

coveralls commented Sep 3, 2020

Coverage Status

Coverage increased (+0.005%) to 88.26% when pulling b2640da on whats-up-doc into 47b5f50 on master.

@@ -578,6 +578,9 @@ def clean(name,
if e.errno != errno.ENOENT:
raise
raise UnknownBundle(name)

if before is after is keep_last is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@richafrank richafrank merged commit cae71bd into master Sep 3, 2020
@richafrank richafrank deleted the whats-up-doc branch September 3, 2020 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants