File tree Expand file tree Collapse file tree 2 files changed +214
-207
lines changed
Expand file tree Collapse file tree 2 files changed +214
-207
lines changed Original file line number Diff line number Diff line change @@ -168,35 +168,4 @@ def dependency_check(session: Session) -> None:
168168 console = rich .console .Console ()
169169 if illegal := dependencies .illegal :
170170 report_illegal (illegal , console )
171- sys .exit (1 )
172-
173-
174- @nox .session (name = "lint:import" , python = False )
175- def import_lint (session : Session ) -> None :
176- """(experimental) Runs import linter on the project"""
177- parser = argparse .ArgumentParser (
178- usage = "nox -s import-lint -- [options]" ,
179- description = "Runs the import linter on the project" ,
180- )
181- parser .add_argument (
182- "-c" ,
183- "--config" ,
184- type = str ,
185- help = "path to the configuration file for the importlinter" ,
186- metavar = "TEXT" ,
187- )
188-
189- args : argparse .Namespace = parser .parse_args (args = session .posargs )
190- file : str = args .config
191- path : Path | None = None
192- if file is None :
193- path = getattr (
194- PROJECT_CONFIG , "import_linter_config" , Path (".import_linter_config" )
195- )
196- else :
197- path = Path (file )
198- if not path .exists ():
199- session .error (
200- "Please make sure you have a configuration file for the importlinter"
201- )
202- _import_lint (session = session , path = path )
171+ sys .exit (1 )
You can’t perform that action at this time.
0 commit comments