Skip to main content

Mostly useless code to demonstrate Python DevOps tools

Project description

fakeproj: DevOps for Dummies

unit test integration test coverage codecov complexity test build test

Code style: black Documentation Status Maintenance GitHub issues PRs Welcome

PyPI version fury.io PyPI license PyPI pyversions GitHub release

A dummy project to introduce various DevOps tools and Best Practices to Python developers. Follow along with the tutorial on fakeproj.readthedocs.io

Installation

pip install .

Developer Setup

pip install -r requirements.txt

Testing

pytest -s -v --cov=fakeproj test/

There are markers for individual modules from the library, eg,

pytest -v -m "goodmodule" --cov=fakeproj test/

Benchmarks

Benchmarks can be run locally using asv run, followed by asv publish and asv preview.

The benchmarks are also available to view online at here.

To update the online dashboard by pushing the latest benchmarks, use asv gh-pages

Complexity

radon cc -a .
xenon --max-absolute B --max-modules B --max-average A .

Docstrings

docstr-coverage .

GitHub Actions

  • Unit Testing (Python 3.6, 3.7, 3.8 on ubuntu:latest)
  • Code Coverage
  • Code Complexity (Maximum CC of B/B/A)
  • Build Testing (Python 3.6, 3.7, 3.8 on {ubuntu, macos, windows}:latest)

Code Formatting

This project uses Black for Code Formatting

To-Do

  • Populate Docs

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fakeproj-nightly-20210427.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

fakeproj_nightly-20210427-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page