Skip to content

Commit

Permalink
Narrow down import constraint to astropy.units
Browse files Browse the repository at this point in the history
  • Loading branch information
astrojuanlu committed Nov 9, 2021
1 parent 465a490 commit 020c54a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .importlinter
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[importlinter]
root_package = poliastro
# Include Astropy to properly analyze external submodules,
# see https://github.com/seddonym/import-linter/issues/111
root_packages =
poliastro
astropy
include_external_packages=True

[importlinter:contract:1]
name=poliastro.core does not import astropy.units
type=forbidden
source_modules=
poliastro.core
# astropy.units is not supported,
# see https://github.com/seddonym/import-linter/issues/111
forbidden_modules=
astropy
astropy.units

0 comments on commit 020c54a

Please sign in to comment.