Skip to main content

Mark your Python modules

Project description

image Build Status

Markings

markings is a library that provides a way to mark your Python module, usually with issues. Because it is part of the code, it enable you to have an "up to date" list of issues, per a commit, and to be able to view the trends of the issues along the git commits as oppose to using an external issue tracking system.

The library is based on pytest's markers and especially on @pytest.mark.xfail.

Example

Import the marker from the markings module. Decide how you want to mark a fuction and use the decorator to mark the function.

from markings import marker

@marker.todo("Receive the name of the user as parameter")
def func():
    print("hello world")

In the previous example the marker was todo, but it can be anything you want:

from markings import marker

@marker.anything_you_want("Receive the name of the user as parameter")
def func():
    print("hello world")

Installation

pip install markings

Tests

./scripts/test.sh

Lint

How to contribute

Project details


Download files

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

Source Distribution

markings-0.0.5.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file markings-0.0.5.tar.gz.

File metadata

  • Download URL: markings-0.0.5.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.1

File hashes

Hashes for markings-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f784a58bec86452dcef80480890245d763f128c68f0036dd103178a7ed18c8c3
MD5 ca713935a842c8a23bf8a733fc1f0f70
BLAKE2b-256 8bfabb144da99c8d694ccd92cbbc973af6055547d847b341bff0e781f762e6c7

See more details on using hashes here.

Supported by

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