Skip to main content

Sentieoslack

Project description

Sentieoslack

Black

How to run locally

  • To setup locally make sure pyenv, Poetry, and nox are installed
cd <project_directory>
  • To create virtual environment and install development dependencies
make develop
  • Run tests to ensure everything is setup
make test

Project overview

Files and directories

├── .cookiecutter.json                          # Cookiecutter attributes and values
├── .cruft.json                                 # Cruft info, used for updating project
├── .flake8                                     # Flake8 config
├── .gitattributes
├── .gitignore
├── .pre-commit-config.yaml                     # Pre commit hooks
├── .vscode                    ├── settings.json                           # Sample .vscode python setings   └── tasks.json                              # Test runner for VSCode unit test runner
├── Makefile                                    # Makefile to setup, test, and build the project
├── README.md   
├── noxfile.py                                  # Nox config file, defines test sessions
├── poetry.lock
├── pyproject.toml
├── src
│   └── sentieoslack
│       ├── __init__.py
│       └── py.typed                            # Marker file for PEP 561
└── tests                                       # Pytest unit tests
    ├── __init__.py
    └── test_main.py

Makefile Usage

Setup development environment

To install run:

make develop

To uninstall

make delete-env && make cleanup

Codestyle

Automatic formatting uses pyupgrade, isort and black.

To check formatting issues run

make check-format

To auto fix formatting issue

make format
Code security

This command launches Poetry integrity checks as well as identifies security issues with Safety and Bandit.

make check-safety

Type checks

Run mypy static type checker

make check-static-type

Run typeguard run time type checker

make check-run-type

To run both together, run

make check-type

Tests with coverage report

Run pytest

make test

Run nox session to test package in multiple python versions

make test-all

Linting

To run flake8 linting which will report issues

make check-issues

And to check for all linting, and typing, and safety issues

make check

Complexity

To generate code quality metric report using radon run

make code-metrics

Cleanup

Delete pycache files

make pycache-remove

Remove package build

make build-remove

Delete .DS_STORE files

make dsstore-remove

Remove .mypycache

make mypycache-remove

Or to remove all above run:

make cleanup

🎯 What's next

Well, that's up to you 💪🏻. I can only recommend the packages to use

  • Pydantic – data validation and settings management using Python type hinting.
  • Loguru makes logging (stupidly) simple.
  • IceCream is a little library for sweet and creamy debugging.
  • Returns makes you function's output meaningful, typed, and safe!
  • Dynaconf Configuration management for Python
  • FastAPI is a type-driven asynchronous web framework.

And stay up to date by following

Contributing

Contributions are very welcome.

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

sentieoslack-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

sentieoslack-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file sentieoslack-0.0.1.tar.gz.

File metadata

  • Download URL: sentieoslack-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0

File hashes

Hashes for sentieoslack-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a534d8975764c0f0579b86d86bf56254751c1a112f804f3817474cb52ee03a71
MD5 2b9c3821f72caadab5c1489eb35726cf
BLAKE2b-256 cf92c2928f2b7151251e4a51d02d5792f22cd75bb5adb335306ad1ef3db5a3f9

See more details on using hashes here.

File details

Details for the file sentieoslack-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: sentieoslack-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/23.5.0

File hashes

Hashes for sentieoslack-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 108b64dfaeed4d41e4674d57cdd2f95b33b9d8255af71d179532780a971609c1
MD5 1b378327d78890edc3d27f5f54c8a878
BLAKE2b-256 058d85ede924aec97a0dc0fa308b14c8934854c2f91b18b910884556e0d95be6

See more details on using hashes here.

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