Skip to content

Commit

Permalink
Coding Standards, add .dockerignore, fix typo, language tweaks (Water…
Browse files Browse the repository at this point in the history
…boy1602#21)

* format code with black, add .dockerignore, update dockerfile to alpine3.8, add flake8 config, address problems identified by flake8, fix sickrage typo, refactor code in a couple areas, update en lang 'serie' to 'series'

* Add admin.txt and container name to docker-compose

* Code formatting and fixed linting warnings

* Code formatting
  • Loading branch information
toddrob99 authored Jul 3, 2020
1 parent 035f974 commit bc3c02c
Show file tree
Hide file tree
Showing 10 changed files with 549 additions and 222 deletions.
146 changes: 146 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
.gitignore
docker-compose.yml
Dockerfile
*.log
config*.yaml
admin.txt
chatid.txt
**/.flake8
**/__pycache__
**/logs
**/data
**/local
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
*.db
local/

.vscode/

# 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
MANIFEST

# 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
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
ignore = E203, E501, W503
exclude = .git,__pycache__,docs,build,dist,logs
max-line-length = 88
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6-alpine
FROM python:3.8-alpine

WORKDIR /usr/src
# Install requirements
Expand Down
Loading

0 comments on commit bc3c02c

Please sign in to comment.