Skip to content

Commit

Permalink
Don't check for line length
Browse files Browse the repository at this point in the history
  • Loading branch information
varnav committed Jan 2, 2021
1 parent 42b2eef commit 4182331
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=15 --max-line-length=250 --statistics
flake8 . --count --exit-zero --max-complexity=15 --max-line-length=500 --statistics
# - name: Run pytest
# run: python -m pytest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Lint with flake8
run: |
flake8 . --count --max-line-length=300 --statistics
flake8 . --count --max-line-length=500 --statistics
- name: Build package
run: python setup.py sdist bdist_wheel
Expand Down
15 changes: 8 additions & 7 deletions filmcompress.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ def main(indir, outdir, oformat='mp4', include='*', recursive=False, gpu='none',

for fp in search_files(str(indir), recursive=recursive):
fp = pathlib.PurePath(fp)
if fnmatch.fnmatch(fp, include):
assert os.path.exists(fp)
try:
probe = ffmpeg.probe(fp)
except ffmpeg.Error as e:
print(e.stderr, file=sys.stderr)
sys.exit(1)
if not fnmatch.fnmatch(fp, include):
continue
assert os.path.exists(fp)
try:
probe = ffmpeg.probe(fp)
except ffmpeg.Error as e:
print(e.stderr, file=sys.stderr)
sys.exit(1)

video_stream = next((stream for stream in probe['streams'] if stream['codec_type'] == 'video'), None)
if video_stream is None:
Expand Down

0 comments on commit 4182331

Please sign in to comment.