Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Oct 10, 2023
2 parents a032dbd + 092c775 commit 6710154
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
1 change: 1 addition & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ engines:
excluded_paths:
- tests/**
exclude_paths:
- ".flake8"
- "**.md"
- "**.rst"
- "**.pdf"
Expand Down
25 changes: 25 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[flake8]
extend-select =
# bugbear
B
# bugbear opinions
B9
# implicit str concat
ISC
extend-ignore =
# slice notation whitespace, invalid
E203
# line length, handled by bugbear B950
E501
# bare except, handled by bugbear B001
E722
# zip with strict=, requires python >= 3.10
B905
# string formatting opinion, B028 renamed to B907
B028
B907
# up to 88 allowed by bugbear B950
max-line-length = 80
per-file-ignores =
# __init__ exports names
src/flask/__init__.py: F401
7 changes: 4 additions & 3 deletions dev_tools/git_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
A git wrapper to simplify git operations.
"""

from subprocess import Popen, PIPE, STDOUT
# nosec - Ignore security warnings
from subprocess import Popen, PIPE, STDOUT # nosec
from argparse import ArgumentParser
import fileinput
import shlex
Expand Down Expand Up @@ -378,8 +379,8 @@ def run_cmd(
loguru_logger.log("DEBUG", "|" + "Popen() started")

process = Popen(
shlex.split(cmd),
shell=False,
cmd,
shell=True,
universal_newlines=True,
cwd=cwd,
stderr=PIPE,
Expand Down

0 comments on commit 6710154

Please sign in to comment.