mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-09 15:52:23 +03:00
Sort imports with isort
This commit is contained in:
parent
23c7c45f04
commit
97e9459c65
2 changed files with 11 additions and 8 deletions
|
@ -86,6 +86,7 @@
|
||||||
pkgs.bashInteractive
|
pkgs.bashInteractive
|
||||||
pkgs.python3Packages.flake8
|
pkgs.python3Packages.flake8
|
||||||
pkgs.python3Packages.flake8-bugbear
|
pkgs.python3Packages.flake8-bugbear
|
||||||
|
pkgs.python3Packages.isort
|
||||||
];
|
];
|
||||||
ROSDEP_SOURCE_PATH = "${rosdistro}/rosdep/sources.list.d";
|
ROSDEP_SOURCE_PATH = "${rosdistro}/rosdep/sources.list.d";
|
||||||
ROSDISTRO_INDEX_URL = "file://${rosdistro}/index-v4.yaml";
|
ROSDISTRO_INDEX_URL = "file://${rosdistro}/index-v4.yaml";
|
||||||
|
|
|
@ -3,14 +3,6 @@
|
||||||
# Copyright 2019-2024 Ben Wolsieffer <benwolsieffer@gmail.com>
|
# Copyright 2019-2024 Ben Wolsieffer <benwolsieffer@gmail.com>
|
||||||
# Copyright 2024 Michal Sojka <michal.sojka@cvut.cz>
|
# Copyright 2024 Michal Sojka <michal.sojka@cvut.cz>
|
||||||
|
|
||||||
from .nix_expression import NixExpression, NixLicense
|
|
||||||
from catkin_pkg.package import parse_package_string, Package
|
|
||||||
from superflore.exceptions import UnresolvedDependency
|
|
||||||
from superflore.generators.nix.nix_package import NixPackage
|
|
||||||
from superflore.utils import err, ok, warn
|
|
||||||
from superflore.utils import resolve_dep
|
|
||||||
from textwrap import dedent, indent
|
|
||||||
from typing import Iterable, Set
|
|
||||||
import argparse
|
import argparse
|
||||||
import itertools
|
import itertools
|
||||||
import json
|
import json
|
||||||
|
@ -18,6 +10,16 @@ import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
from contextlib import contextmanager
|
||||||
|
from textwrap import dedent, indent
|
||||||
|
from typing import Iterable, Set
|
||||||
|
|
||||||
|
from catkin_pkg.package import Package, parse_package_string
|
||||||
|
from superflore.exceptions import UnresolvedDependency
|
||||||
|
from superflore.generators.nix.nix_package import NixPackage
|
||||||
|
from superflore.utils import err, ok, resolve_dep, warn
|
||||||
|
|
||||||
|
from .nix_expression import NixExpression, NixLicense
|
||||||
|
|
||||||
|
|
||||||
def resolve_dependencies(deps: Iterable[str]) -> Set[str]:
|
def resolve_dependencies(deps: Iterable[str]) -> Set[str]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue