-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
018c4e3
commit b6d3836
Showing
36 changed files
with
4,128 additions
and
4,123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
*.py text | ||
*.rst text | ||
*.cfg text | ||
*.yml text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
|
||
from matchpy.expressions.expressions import Operation, Symbol, Arity, Wildcard, make_dot_variable, make_star_variable, make_plus_variable | ||
import matchpy | ||
|
||
@pytest.fixture(autouse=True) | ||
def add_default_expressions(doctest_namespace): | ||
doctest_namespace['f'] = Operation.new('f', Arity.variadic) | ||
doctest_namespace['a'] = Symbol('a') | ||
doctest_namespace['b'] = Symbol('b') | ||
doctest_namespace['c'] = Symbol('c') | ||
doctest_namespace['x_'] = make_dot_variable('x') | ||
doctest_namespace['y_'] = make_dot_variable('y') | ||
doctest_namespace['_'] = Wildcard.dot() | ||
doctest_namespace['__'] = Wildcard.plus() | ||
doctest_namespace['___'] = Wildcard.star() | ||
doctest_namespace['__name__'] = '__main__' | ||
|
||
for name in matchpy.__all__: | ||
doctest_namespace[name] = getattr(matchpy, name) | ||
# -*- coding: utf-8 -*- | ||
import pytest | ||
|
||
from matchpy.expressions.expressions import Operation, Symbol, Arity, Wildcard, make_dot_variable, make_star_variable, make_plus_variable | ||
import matchpy | ||
|
||
@pytest.fixture(autouse=True) | ||
def add_default_expressions(doctest_namespace): | ||
doctest_namespace['f'] = Operation.new('f', Arity.variadic) | ||
doctest_namespace['a'] = Symbol('a') | ||
doctest_namespace['b'] = Symbol('b') | ||
doctest_namespace['c'] = Symbol('c') | ||
doctest_namespace['x_'] = make_dot_variable('x') | ||
doctest_namespace['y_'] = make_dot_variable('y') | ||
doctest_namespace['_'] = Wildcard.dot() | ||
doctest_namespace['__'] = Wildcard.plus() | ||
doctest_namespace['___'] = Wildcard.star() | ||
doctest_namespace['__name__'] = '__main__' | ||
|
||
for name in matchpy.__all__: | ||
doctest_namespace[name] = getattr(matchpy, name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.expressions.constraints module | ||
====================================== | ||
|
||
.. automodule:: matchpy.expressions.constraints | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.expressions.constraints module | ||
====================================== | ||
|
||
.. automodule:: matchpy.expressions.constraints | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.expressions.expressions module | ||
====================================== | ||
|
||
.. automodule:: matchpy.expressions.expressions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.expressions.expressions module | ||
====================================== | ||
|
||
.. automodule:: matchpy.expressions.expressions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.expressions.functions module | ||
==================================== | ||
|
||
.. automodule:: matchpy.expressions.functions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.expressions.functions module | ||
==================================== | ||
|
||
.. automodule:: matchpy.expressions.functions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
matchpy.expressions package | ||
=========================== | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.expressions.constraints | ||
matchpy.expressions.expressions | ||
matchpy.expressions.functions | ||
matchpy.expressions.substitution | ||
matchpy.expressions package | ||
=========================== | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.expressions.constraints | ||
matchpy.expressions.expressions | ||
matchpy.expressions.functions | ||
matchpy.expressions.substitution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.expressions.substitution module | ||
======================================= | ||
|
||
.. automodule:: matchpy.expressions.substitution | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.expressions.substitution module | ||
======================================= | ||
|
||
.. automodule:: matchpy.expressions.substitution | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.functions module | ||
======================== | ||
|
||
.. automodule:: matchpy.functions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.functions module | ||
======================== | ||
|
||
.. automodule:: matchpy.functions | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.matching.bipartite module | ||
================================= | ||
|
||
.. automodule:: matchpy.matching.bipartite | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.matching.bipartite module | ||
================================= | ||
|
||
.. automodule:: matchpy.matching.bipartite | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.matching.many_to_one module | ||
=================================== | ||
|
||
.. automodule:: matchpy.matching.many_to_one | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.matching.many_to_one module | ||
=================================== | ||
|
||
.. automodule:: matchpy.matching.many_to_one | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.matching.one_to_one module | ||
================================== | ||
|
||
.. automodule:: matchpy.matching.one_to_one | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.matching.one_to_one module | ||
================================== | ||
|
||
.. automodule:: matchpy.matching.one_to_one | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
matchpy.matching package | ||
======================== | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.matching.bipartite | ||
matchpy.matching.many_to_one | ||
matchpy.matching.one_to_one | ||
matchpy.matching package | ||
======================== | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.matching.bipartite | ||
matchpy.matching.many_to_one | ||
matchpy.matching.one_to_one | ||
matchpy.matching.syntactic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.matching.syntactic module | ||
================================= | ||
|
||
.. automodule:: matchpy.matching.syntactic | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.matching.syntactic module | ||
================================= | ||
|
||
.. automodule:: matchpy.matching.syntactic | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
matchpy package | ||
=============== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.expressions | ||
matchpy.matching | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.functions | ||
matchpy.utils | ||
matchpy package | ||
=============== | ||
|
||
Subpackages | ||
----------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.expressions | ||
matchpy.matching | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
|
||
matchpy.functions | ||
matchpy.utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
matchpy.utils module | ||
==================== | ||
|
||
.. automodule:: matchpy.utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
matchpy.utils module | ||
==================== | ||
|
||
.. automodule:: matchpy.utils | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.