Skip to content

Commit

Permalink
fix bug, try out SE search engine
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdeanmartin committed Feb 15, 2021
1 parent 40a2812 commit 4b8d8af
Show file tree
Hide file tree
Showing 24 changed files with 536 additions and 86 deletions.
1 change: 1 addition & 0 deletions .config/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ python-dotenv
pyupgrade
random-names
requests
slpp
slpp-23
stackapi
stdlib-list
Expand Down
12 changes: 0 additions & 12 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
from navio_tasks.commands.cli_get_secrets import do_git_secrets
from navio_tasks.commands.cli_mypy import do_mypy, evaluated_mypy_results
from navio_tasks.commands.cli_pylint import do_lint, evaluated_lint_results
from navio_tasks.commands.cli_pyt import do_python_taint
from navio_tasks.commands.cli_pytest import do_pytest, do_pytest_coverage
from navio_tasks.commands.cli_tox import do_tox
from navio_tasks.commands.lib_dodgy import do_dodgy
Expand Down Expand Up @@ -383,14 +382,6 @@ def bandit() -> None:
do_bandit(IS_SHELL_SCRIPT_LIKE)


@task(formatting, compile_py)
@skip_if_no_change("python_taint")
@timed()
def python_taint() -> None:
"""
Security linting with pyt
"""
do_python_taint()


@task(flake8)
Expand Down Expand Up @@ -634,7 +625,6 @@ def jiggle_version() -> None:
flake8,
dodgy_check,
bandit,
python_taint,
mccabe,
pin_dependencies,
jiggle_version,
Expand Down Expand Up @@ -675,7 +665,6 @@ def parallel_checks() -> None:
do_flake8,
do_dodgy,
do_bandit,
do_python_taint,
do_mccabe,
do_check_manifest,
do_liccheck,
Expand Down Expand Up @@ -725,7 +714,6 @@ def parallel_checks() -> None:
flake8,
dodgy_check,
bandit,
python_taint,
mccabe,
check_manifest,
liccheck, #
Expand Down
7 changes: 7 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ FROM python:3.9.0-slim-buster
WORKDIR /app
ENV PIP_NO_CACHE_DIR=off
ENV PYTHONUNBUFFERED=1
# multidict doesnt have pre-compiled things for many OSs
ENV MULTIDICT_NO_EXTENSIONS=1
# RUN apk add --no-cache linux-headers==4.19.36-r0 wget
RUN python3 -m pip install --user pipx
RUN python3 -m pipx ensurepath
# isort depends on pylint
RUN pipx install isort && \
pipx install pylint
RUN python -m pip install --no-cache-dir --upgrade pip --quiet \
&& pip install pipenv --no-cache-dir --quiet
COPY dist/so_pip-*-py3-none-any.whl /app/
Expand Down
1 change: 1 addition & 0 deletions docker/run_debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./dockerw.sh run --rm -it -v "$PWD/data:/data" --entrypoint "bash" so_pip:latest
2 changes: 1 addition & 1 deletion docs/prior_art.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ template optimized for an SO answer. Cookie cutter doesn't handle package workfl

PIP
---
Pip and related tools handle intentially created packages with source probably in GitHub and packages stored in pypi.
Pip and related tools handle intentionally created packages with source probably in GitHub and packages stored in pypi.

You could publish a so_pip created package to pypi, (possibly not a good idea), but so_pip packages are better vendorized.

Expand Down
2 changes: 1 addition & 1 deletion docs/scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ data = pandas.read_csv("data.csv")

Some people use a convention of putting a file name right above the block

> hello_world.py
hello_world.py
```
print("hello world")
```
2 changes: 1 addition & 1 deletion docs/todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RELEASE 1.0 Goals
- generic code files are missing brief header
- more templates for code files? e.g. go/js/etc
- meta.so_pip file
- has all the data for doing an subsequent update
- has all the data for doing a subsequent update
- FEATURE: Better "re-usable code" detections
- High lines of code
- def/class syntax
Expand Down
22 changes: 0 additions & 22 deletions navio_tasks/commands/cli_pyt.py

This file was deleted.

Loading

0 comments on commit 4b8d8af

Please sign in to comment.