Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hiancdtrsnm/video-diet in…
Browse files Browse the repository at this point in the history
…to audio-diet
  • Loading branch information
JavierOramas committed Sep 14, 2020
2 parents 8ac7a9c + 2cc4e81 commit 487b3e5
Show file tree
Hide file tree
Showing 11 changed files with 230 additions and 33 deletions.
8 changes: 8 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version = 1

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "poetry" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
26 changes: 26 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Lint

on:
push:
paths:
- '*.py'

jobs:
flake8_py3:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.7.4
architecture: x64
- name: Checkout PyTorch
uses: actions/checkout@master
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'flake8_py3' # NOTE: this needs to be the same as the job name
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 36 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# 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=10 --max-line-length=127 --statistics
# - name: Test with pytest
# run: |
# pytest
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
*.egg-info
*.mp3
*.w4a
*.aac
*.aac
*.vscode
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Leynier Gutiérrez González ([@leynier](https://github.com/leynier))
* Hian Cañizares Díaz ([@hiancdtrsnm](https://github.com/hiancdtrsnm))
* Javier A. Oramas López ([@JavierOramas](https://github.com/javieroramas))
* Jorge Morgado Vega ([@jmorgadov](https://github.com/jmorgadov))

You can help out by:

Expand Down
111 changes: 101 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "video-diet"
version = "0.1.6"
version = "0.1.7"
description = ""
authors = ["hian <[email protected]>"]
readme = "README.md"
Expand All @@ -17,7 +17,7 @@ ffprobe-python = "^1.0.3"
enlighten = "^1.6.2"

[tool.poetry.dev-dependencies]
pytest = "^5.2"
pytest = "^6.0"

[build-system]
requires = ["poetry>=0.12"]
Expand Down
2 changes: 1 addition & 1 deletion video_diet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ffmpeg

__version__ = '0.1.0'
__version__ = '0.1.7'


def convert_file(source: str, dest: str):
Expand Down
Loading

0 comments on commit 487b3e5

Please sign in to comment.