Skip to content

Commit eef9cd5

Browse files
author
Matthias Koeppe
committed
src/doc/en/developer/packaging_sage_library.rst: Mention relint, sage --fiximports
1 parent 568c538 commit eef9cd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/en/developer/packaging_sage_library.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ distribution -- which then must be declared as a run-time dependency.
274274
the ``sage:`` prompt. In particular, no Sage library code should import from
275275
:mod:`sage.rings.all`.
276276

277+
To audit the Sage library for such imports, use ``sage --tox -e relint``.
278+
In most cases, the imports can be fixed automatically using the
279+
tool ``sage --fiximports``.
280+
277281
- Replace module-level imports by method-level imports. Note that
278282
this comes with a small runtime overhead, which can become
279283
noticeable if the method is called in tight inner loops.

0 commit comments

Comments
 (0)