We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 568c538 commit eef9cd5Copy full SHA for eef9cd5
src/doc/en/developer/packaging_sage_library.rst
@@ -274,6 +274,10 @@ distribution -- which then must be declared as a run-time dependency.
274
the ``sage:`` prompt. In particular, no Sage library code should import from
275
:mod:`sage.rings.all`.
276
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
+
281
- Replace module-level imports by method-level imports. Note that
282
this comes with a small runtime overhead, which can become
283
noticeable if the method is called in tight inner loops.
0 commit comments