Git Product home page Git Product logo

vizing's Introduction

PyPI version python package python publish

vizing

List-colouring in Python.

vizing's People

Contributors

mhenderson avatar

Watchers

 avatar

vizing's Issues

Fix tests

==================================== ERRORS ====================================
__________________ ERROR collecting vizing/test_functions.py ___________________
ImportError while importing test module '/home/runner/work/vizing/vizing/vizing/test_functions.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
vizing/test_functions.py:3: in <module>
    from networkx import node_clique_number
E   ModuleNotFoundError: No module named 'networkx'
=========================== short test summary info ============================
ERROR vizing/test_functions.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.08s ===============================

Fix tests

============================= test session starts ==============================
platform linux -- Python 3.10.13, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/runner/work/vizing/vizing
configfile: pyproject.toml
collected 0 items / 1 error

==================================== ERRORS ====================================
_____________________ ERROR collecting tests/test_utils.py _____________________
ImportError while importing test module '/home/runner/work/vizing/vizing/tests/test_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_utils.py:1: in <module>
    import networkx
E   ModuleNotFoundError: No module named 'networkx'
=========================== short test summary info ============================
ERROR tests/test_utils.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.09s ===============================

Fix packaging workflow

Run # stop the build if there are Python syntax errors or undefined names
./vizing/test_functions.py:11:16: F821 undefined name 'graph_clique_number'
        return graph_clique_number(graph.subgraph(nodes)) == 1
               ^
./vizing/utils.py:40:16: F821 undefined name 'graph_clique_number'
        return graph_clique_number(complement(graph))
               ^
./vizing/utils.py:40:36: F821 undefined name 'complement'
        return graph_clique_number(complement(graph))
                                   ^
3     F821 undefined name 'graph_clique_number'
3

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.