This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hayabhay/dev
Draft Streamlit UI for OpenAIs Whisper
- Loading branch information
Showing
11 changed files
with
711 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
# Custom ignore | ||
local/ | ||
|
||
### Python template | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage.* | ||
.cache/ | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
|
||
### Linux template | ||
*~ | ||
|
||
# temporary files which can be created if a process still has a handle open of a deleted file | ||
.fuse_hidden* | ||
|
||
# KDE directory preferences | ||
.directory | ||
|
||
# Linux trash folder which might appear on any partition or disk | ||
.Trash-* | ||
|
||
# .nfs files are created when an open file is removed but is still being accessed | ||
.nfs* | ||
|
||
|
||
### VisualStudioCode template | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
|
||
### Windows template | ||
# Windows thumbnail cache files | ||
Thumbs.db | ||
ehthumbs.db | ||
ehthumbs_vista.db | ||
|
||
# Dump file | ||
*.stackdump | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
|
||
### SublimeText template | ||
# Cache files for Sublime Text | ||
*.tmlanguage.cache | ||
*.tmPreferences.cache | ||
*.stTheme.cache | ||
|
||
# Workspace files are user-specific | ||
*.sublime-workspace | ||
|
||
# Project files should be checked into the repository, unless a significant | ||
# proportion of contributors will probably not be using Sublime Text | ||
# *.sublime-project | ||
|
||
# SFTP configuration file | ||
sftp-config.json | ||
|
||
# Package control specific files | ||
Package Control.last-run | ||
Package Control.ca-list | ||
Package Control.ca-bundle | ||
Package Control.system-ca-bundle | ||
Package Control.cache/ | ||
Package Control.ca-certs/ | ||
Package Control.merged-ca-bundle | ||
Package Control.user-ca-bundle | ||
oscrypto-ca-bundle.crt | ||
bh_unicode_properties.cache | ||
|
||
# Sublime-github package stores a github token in this file | ||
# https://packagecontrol.io/packages/sublime-github | ||
GitHub.sublime-settings | ||
|
||
|
||
### macOS template | ||
# General | ||
*.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
|
||
### Vim template | ||
# Swap | ||
[._]*.s[a-v][a-z] | ||
[._]*.sw[a-p] | ||
[._]s[a-v][a-z] | ||
[._]sw[a-p] | ||
|
||
# Session | ||
Session.vim | ||
|
||
# Temporary | ||
.netrwhist | ||
# Auto-generated tag files | ||
tags | ||
|
||
|
||
# Even though the project might be opened and edited | ||
# in any of the JetBrains IDEs, it makes no sence whatsoever | ||
# to 'run' anything within it since any particular cookiecutter | ||
# is declarative by nature. | ||
.idea/ | ||
|
||
.pytest_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
default_language_version: | ||
python: python3.10 | ||
default_stages: [commit] | ||
|
||
repos: | ||
# Common pre-commit hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-added-large-files | ||
args: ['--maxkb=20000'] | ||
- id: check-ast | ||
- id: check-builtin-literals | ||
- id: check-case-conflict | ||
- id: check-docstring-first | ||
- id: check-executables-have-shebangs | ||
- id: check-shebang-scripts-are-executable | ||
- id: check-symlinks | ||
- id: check-json | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: pretty-format-json | ||
args: ['--autofix'] | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.3.1 | ||
hooks: | ||
- id: forbid-crlf | ||
name: CRLF end-lines checker | ||
description: "Forbid files containing CRLF end-lines to be committed" | ||
entry: forbid_crlf | ||
language: python | ||
- id: forbid-tabs | ||
name: No-tabs checker | ||
description: "Forbid files containing tabs to be committed" | ||
entry: forbid_tabs | ||
language: python | ||
|
||
- repo: https://github.com/hadialqattan/pycln | ||
rev: v2.1.1 | ||
hooks: | ||
- id: pycln | ||
name: pycln | ||
description: "A formatter for finding and removing unused import statements." | ||
entry: pycln | ||
language: python | ||
language_version: python3 | ||
types: [python] | ||
|
||
- repo: local | ||
hooks: | ||
- id: jupyter-nb-clear-output | ||
name: jupyter-nb-clear-output | ||
description: "Clear jupyter notebook cell-outputs" | ||
entry: jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace | ||
files: \.ipynb$ | ||
stages: [commit] | ||
language: system | ||
|
||
- repo: https://github.com/mwouts/jupytext | ||
rev: v1.14.1 | ||
hooks: | ||
- id: jupytext | ||
name: jupytext | ||
description: "Runs jupytext on all notebooks and paired files." | ||
language: python | ||
entry: jupytext --pre-commit-mode | ||
require_serial: true | ||
args: [--sync, --pipe, black] | ||
additional_dependencies: | ||
- black==22.1.0 | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.8.0 | ||
hooks: | ||
- id: black | ||
name: black | ||
description: "Black: The uncompromising Python code formatter" | ||
entry: black | ||
language: python | ||
minimum_pre_commit_version: 2.9.2 | ||
require_serial: true | ||
types_or: [python, pyi] | ||
args: | ||
- "--line-length=120" | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
name: isort | ||
description: "Sorts import statements" | ||
entry: isort | ||
require_serial: true | ||
language: python | ||
language_version: python3 | ||
types_or: [ cython, pyi, python ] | ||
minimum_pre_commit_version: '2.9.2' | ||
files: "\\.(py)$" | ||
args: | ||
- "--filter-files" | ||
- "--profile=black" | ||
- "--multi-line=3" | ||
- "--line-length=120" | ||
- "--trailing-comma" | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 5.0.4 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 | ||
description: "`flake8` is a command-line utility for enforcing style consistency across Python projects." | ||
entry: flake8 | ||
language: python | ||
types: [python] | ||
require_serial: true | ||
exclude: ^scratch/ | ||
additional_dependencies: [ | ||
"flake8-bugbear", | ||
"flake8-comprehensions", | ||
"flake8-mutable", | ||
"flake8-print", | ||
"flake8-simplify", | ||
] | ||
args: | ||
- "--max-line-length=120" | ||
- "--max-complexity=12" | ||
- "--ignore=E501,W503,E203,F405,F403,F401,C901" |
Oops, something went wrong.