-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from thecaligarmo/develop
Merge in Develop
- Loading branch information
Showing
30 changed files
with
1,037 additions
and
825 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
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 |
---|---|---|
|
@@ -87,3 +87,6 @@ ENV/ | |
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# vim stuff | ||
*.swp |
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,63 @@ | ||
# From https://github.com/sagemath/sage-patchbot/blob/master/sage_patchbot/plugins.py | ||
# (simple pattern-exclusion plugins) | ||
# The patterns have been edited slightly because relint tests the regexp to the whole file, | ||
# whereas the patchbots tests them line by line. | ||
|
||
- name: 'python3: Python3 incompatible code' | ||
hint: | | ||
# ifilter, imap, izip # __metaclass__ | ||
# update raise statements # except Exception, var | ||
# six is no longer allowed | ||
pattern: '(import.*[, ]ifilter|import.*[, ]imap|import.*[, ]izip|^\s*raise\s*[A-Za-z]*Error\s*,|__metaclass__|except\s*[A-Za-z]\s*,|import six|from six import)' | ||
filePattern: .*[.](py|pyx|rst) | ||
|
||
- name: 'foreign_latex: foreign commands in LaTeX' | ||
hint: | | ||
use equivalent LaTeX commands instead of plain TeX commands such as \over, \choose, etc. | ||
pattern: '(\\choose|\\atop|\\above|\\overwithdelims|\\atopwithdelims|\\abovewithdelims)' | ||
# \over appears in bad latex code coming from Fricas and Maxima | ||
|
||
- name: 'blocks: wrong syntax for blocks (INPUT, OUTPUT, EXAMPLES, NOTE, etc.)' | ||
hint: | | ||
# the correct syntax is .. SEEALSO:: | ||
# TESTS and EXAMPLES should be plural, NOTE singular | ||
# no :: after INPUT, OUTPUT, REFERENCE blocks | ||
# no " :" at the end of lines | ||
pattern: '(\.\.SEE|SEE ALSO|SEEALSO:($|[^:])|^\s*TEST:|^\s*EXAMPLE:|^\s*NOTES:|^\s*[A-Z]*PUT::|^\s*REFERENCES?::$)' | ||
|
||
- name: 'trac_links: bad trac link' | ||
hint: | | ||
the correct syntax for trac roles is :trac:`NUMBER`, note the initial colon | ||
pattern: '[^:]trac:`[0-9]' | ||
|
||
- name: 'triple_colon: triple colon (::: or : ::)' | ||
pattern: ':[ ]*::$' | ||
|
||
# From various typo tickets | ||
|
||
# https://github.com/sagemath/sage/issues/30585 | ||
- name: 'typo "homogenous" detected' | ||
hint: | | ||
in mathematics it should be "homogeneous" | ||
pattern: 'homogenous' | ||
|
||
# Modularization anti-patterns | ||
|
||
- name: 'namespace_pkg_all_import: import from .all of a namespace package' | ||
hint: | | ||
Sage library code should not import from sage.PAC.KAGE.all when sage.PAC.KAGE is an implicit | ||
namespace package. Type import_statements("SOME_IDENTIFIER") to find a more specific import, | ||
or use 'sage --fiximports' to fix automatically in the source file. | ||
# Keep in sync with SAGE_ROOT/src/sage/misc/replace_dot_all.py | ||
pattern: 'from\s+sage(|[.](arith|categories|combinat|crypto|databases|data_structures|dynamics|ext|game_theory|games|graphs|groups|interfaces|manifolds|matrix|matroids|misc|modules|monoids|numerical|probability|quadratic_forms|quivers|rings|sat|schemes|sets|stats|symbolic|tensor)[a-z0-9_.]*|[.]libs)[.]all\s+import' | ||
# imports from .all are allowed in all.py; also allow in some modules that need sage.all | ||
filePattern: '(.*/|)(?!(all|benchmark|dev_tools|parsing|sage_eval))[^/.]*[.](py|pyx|pxi)$' | ||
|
||
# Magic doctest comments | ||
|
||
- name: 'multiline_doctest_comment: magic comment on a continuation line' | ||
hint: | | ||
magic doctest comments should appear on the "sage:" line, not "....:" lines | ||
# see optional_regex in src/sage/doctest/parsing.py | ||
# "indirect doctest" is from src/bin/sage-coverage | ||
pattern: '^[ ]*[.][.][.][.]:.*#.*(arb216|arb218|py2|py3|long time|not implemented|not tested|known bug|optional|indirect doctest)' |
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
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
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,2 @@ | ||
include README.md | ||
include VERSION |
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
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 +1 @@ | ||
0.0.2 | ||
0.1.0 |
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
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
4 changes: 2 additions & 2 deletions
4
...d_matroids/oriented_matroids_category.rst → ...ed_matroids/abstract_oriented_matroid.rst
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,9 +1,9 @@ | ||
.. nodoctest | ||
Oriented Matroids Category | ||
Abstract Oriented Matroids | ||
========================== | ||
|
||
.. automodule:: oriented_matroids.oriented_matroids_category | ||
.. automodule:: oriented_matroids.abstract_oriented_matroid | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
9 changes: 0 additions & 9 deletions
9
docs/source/oriented_matroids/hyperplane_arrangement_oriented_matroid.rst
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
docs/source/oriented_matroids/real_hyperplane_arrangement_oriented_matroid.rst
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,9 @@ | ||
.. nodoctest | ||
Real Hyperplane Arrangement Oriented Matroids | ||
============================================= | ||
|
||
.. automodule:: oriented_matroids.real_hyperplane_arrangement_oriented_matroid | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
from __future__ import absolute_import | ||
from .oriented_matroid import OrientedMatroid | ||
from .oriented_matroids_category import OrientedMatroids | ||
from .abstract_oriented_matroid import AbstractOrientedMatroid | ||
|
||
from sage.misc.lazy_import import lazy_import | ||
lazy_import('sage.matroids.oriented_matroids', | ||
'oriented_matroids_catalog', 'oriented_matroids') | ||
# from sage.misc.lazy_import import lazy_import | ||
# lazy_import('sage.matroids.oriented_matroids', | ||
# 'oriented_matroids_catalog', 'oriented_matroids') |
Oops, something went wrong.