Giter Site home page Giter Site logo

check-execution-order's Introduction

check-execution-order's People

Contributors

marcogorelli avatar oriolabril avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

check-execution-order's Issues

Possible encoding problem when loading notebooks

Hi @MarcoGorelli ,

over at pymc-devs/pymc-examples#264 I'm running into an encoding issue with this pre-commit step.

Would it help if you specify an encoding for opening the files?

Here's the file that triggered it:
sampler-stats.zip

INFO:scripts/rerun.py:Running pre-commit on examples\diagnostics_and_criticism\sampler-stats.ipynb
black-jupyter..................................................................................Failed
- hook id: black-jupyter
- files were modified by this hook

reformatted examples\diagnostics_and_criticism\sampler-stats.ipynb
All done! \u2728 \U0001f370 \u2728
1 file reformatted.

nbqa-isort.....................................................................................Passed
nbqa-pyupgrade.................................................................................Passed
check-execution-order..........................................................................Failed
- hook id: check-execution-order
- exit code: 1

Traceback (most recent call last):
  File "c:\users\zufal\miniconda3\envs\pm3v4\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\zufal\miniconda3\envs\pm3v4\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\zufal\.cache\pre-commit\repodgyo1nz1\py_env-default\Scripts\check-execution-order.EXE\__main__.py", line 7, in <module>
  File "C:\Users\zufal\.cache\pre-commit\repodgyo1nz1\py_env-default\lib\site-packages\check_execution_order.py", line 44, in main
    content = json.load(fd)
  File "c:\users\zufal\miniconda3\envs\pm3v4\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
  File "c:\users\zufal\miniconda3\envs\pm3v4\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 39467: character maps to <undefined>

Check notebooks have watermark (see Jupyter style guide from PyMC3 Wiki).......................Passed
Check all notebooks appear in table of contents................................................Passed
Add PyMC3 classes used to tags.................................................................Passed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.