Skip to content

Commit

Permalink
Merge pull request fluidattacks#1203 from dsalaza4/main
Browse files Browse the repository at this point in the history
fix(back): fluidattacks#1200 module name
  • Loading branch information
dsalaza4 authored Dec 5, 2023
2 parents 31455b0 + 1040383 commit 946c7ae
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/args/lint-python/builder.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# shellcheck shell=bash

function get_package_name {
local package_path="${1}"
local package_dir

: && package_dir="$(basename "${envSrc#*--}")" \
&& echo "${package_dir//-/_}"
}

function main {
# If you do `import XXX` in your python code and the structure is like this:
# /path/to/XXX
Expand All @@ -20,7 +12,7 @@ function main {
local python_dirs
local python_dir

package_name="$(get_package_name "${envSrc}")" \
package_name="$(basename "${envSrc##*-}")" \
&& info Running mypy over: "${package_path}", package "${package_name}" \
&& if ! test -e "${package_path}/py.typed"; then
error This is not a mypy package, py.typed missing
Expand Down

0 comments on commit 946c7ae

Please sign in to comment.