question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ENH: Tox as main entry point for development

See original GitHub issue

So I have been working on issue #23154 trying to setup flake8-rst as additional check for code within documentation.

It’s working great, finding multiple places to fix, however in order to test I’m not able to run the appropriate commands.

  • created a conda environment
  • installed dependencies from ./ci/requirements_dev.txt and ./ci/requirements-optional-conda.txt
  • activated pandas-dev environment
  • executed python make.py html within ./doc folder

Resulting in

~/.../pandas/core/algorithms.py in _factorize_array(values, na_sentinel, size_hint, na_value)
    472     table = hash_klass(size_hint or len(values))
    473     labels, uniques = table.factorize(values, na_sentinel=na_sentinel,
--> 474                                       na_value=na_value)
    475 
    476     labels = ensure_platform_int(labels)

TypeError: factorize() takes no keyword arguments

So I can’t really evaluate weather the changes I am going to make are correct.

Trying to build pandas or running the test suite never worked for me as well. Maybe it’s just my own error, but I think there are others getting these issues.

As the project is already featuring tox I’m proposing to enhance tox with all these use-cases so that after a fresh clone of the project someone can just type tox -e docs and tox creates a venv with all required dependencies and runs the build, tox -e check to run flake8, isort, validate_docstrings.py … tox for a complete check of everything -> reducing failing ci-builds

In my opinion this could simplify someones first steps to contribute to pandas. What do you think?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
TomAugspurgercommented, Oct 26, 2018

That’s a bug with IPython 7.0. It’s fixed on IPython master.

1reaction
jorisvandenbosschecommented, Oct 26, 2018

@FHaase regarding the error you get: you need to (re)build the pandas C extensions (python setup.py build_ext --inplace)

Read more comments on GitHub >

github_iconTop Results From Across the Web

tox Documentation - Read the Docs
tox is a generic virtualenv management and test command line tool you can use for: • checking your package installs correctly with different ......
Read more >
Acetylcholinesterase Inhibitors: Pharmacology and Toxicology
This review presents an overview of toxicology and pharmacology of reversible ... and the primary portal of entry into the body is the...
Read more >
Release 3.23.1 holger krekel and others - tox Documentation
tox is a generic virtualenv management and test command line tool you can use for: • checking that your package installs correctly with ......
Read more >
Scientific Working Group for Forensic Toxicology (SWGTOX ...
The primary goal is to demonstrate that the sample preparation steps allow for adequate extraction, detection, identification, and/or ...
Read more >
Development of therapeutic antibodies for the treatment of ...
It has been more than three decades since the first monoclonal antibody was approved by the United States Food and Drug Administration (US ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found