Skip to content

Commit

Permalink
src/.relint.yml: Remove repetition of 'Hint:', no longer needed with …
Browse files Browse the repository at this point in the history
…current relint
  • Loading branch information
Matthias Koeppe committed Apr 1, 2023
1 parent c0d3646 commit 716be52
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/.relint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
- name: 'python3: Python3 incompatible code'
hint: |
# ifilter, imap, izip # __metaclass__
Hint: # update raise statements # except Exception, var
Hint: # six is no longer allowed
# 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)

Expand All @@ -20,9 +20,9 @@
- name: 'blocks: wrong syntax for blocks (INPUT, OUTPUT, EXAMPLES, NOTE, etc.)'
hint: |
# the correct syntax is .. SEEALSO::
Hint: # TESTS and EXAMPLES should be plural, NOTE singular
Hint: # no :: after INPUT, OUTPUT, REFERENCE blocks
Hint: # no " :" at the end of lines
# 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'
Expand All @@ -46,8 +46,8 @@
- 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
Hint: namespace package. Type import_statements("SOME_IDENTIFIER") to find a more specific import,
Hint: or use 'sage --fiximports' to fix automatically in the source file.
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|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
Expand Down

0 comments on commit 716be52

Please sign in to comment.