Coder Social home page Coder Social logo

plotly-dash-mydash's Introduction

Plotly/Dash Dashboard

Quick start

This is a little bit of a general Python project quickstart

Setup Environment

python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install --upgrade pip setuptools
pip install -r requirements.txt

Configuration (pyproject.toml)

[tool.black]
line-length = 110

[tool.pytest.ini_options]
minversion = "6.0"
addopts = '''
  -v
  -rs
  --strict-config
  --strict-markers
  --showlocals
  --black
  --flake8
  --isort
  --mypy

  --junitxml=junit/test-results.xml

  --cov=.
  --cov-branch
  --cov-report xml:cov.xml
  --cov-report html:htmlcov
  --cov-report term
  --cov-fail-under=80
'''

[tool.coverage.run]
branch=true
omit = [
  '**/test_*.py',
  '**/__init__.py',
  '.venv/**/*.py',
  'test/',
]

[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 110
import_heading_stdlib='Standard Library'
import_heading_thirdparty='Third Party Libraries'
import_heading_firstparty='Our Libraries'

[tool.mypy]
mypy_path = 'mydash'
check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true

Test Suite

Run the test suite even without any tests will give us a good start here.

Every source file generates a test for formatting (black), linting (flake8), type checking (mypy)

pytest

Running the project

python3 -m mydash

plotly-dash-mydash's People

Contributors

neozenith avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.