Skip to main content

Constructs and utilities for managing projects (Python, NodeJS etc) with Projen enforcing solid build, test and linting structures

Project description

projen-practical-constructs

Constructs and utilities for managing projects with Projen enforcing solid build, test and linting structures.

This repo have additional Constructs not present in official projen repo such as RUFF, Makefile etc.

Currently there is support for Python projects, but in the future more will be added.

Check in /examples folder the target structure that these project types will produce.

For Python project types

Project type name: python_basic

The basic stack supported by this project is:

  • Makefile: scripts management
  • pip: virtual environments management
  • Mypy: code Type check
  • RUFF: code formatting and linting
  • pytest + coverage: test management
  • pip-audit: dependencies vulnerability checks
  • pip-tools: dependencies lock file generation (contrainsts.txt)
  • vs-code plugins: code editor feedback

This project was used as reference for the target project structure created by this projen project type.

Usage

npx projen new --from projen_practical_constructs python_basic

The constructs can be used separately to adapt to your specific needs, but you can use the PythonProject construct with a default configuration of the entire stack to easily have a full project structure with build, test and linting capabilities.

Development

Tests

  • We use a lot of snapshots on our tests, which in general is not a good practice. But in our case we decided to use it because there are lots of files and the snapshots will check if the file contents were changed.
  • Be careful checking manually the errors on snapshots before updating them to be sure that it's not a breaking change to the users of the library

JSII

References

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

projen_practical_constructs-0.2.0.tar.gz (157.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

projen_practical_constructs-0.2.0-py3-none-any.whl (155.2 kB view details)

Uploaded Python 3

File details

Details for the file projen_practical_constructs-0.2.0.tar.gz.

File metadata

File hashes

Hashes for projen_practical_constructs-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7b1a3b262c5dec4fac9bc9c9748856ae3d5d736a758ce051588b91c75a373f15
MD5 be613dcf8b41079705ba31676f7e9d96
BLAKE2b-256 7ee1c6e79d07f0d3b46d42cf433d7ca7524661dbf36abb99235a813c9e49630c

See more details on using hashes here.

File details

Details for the file projen_practical_constructs-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for projen_practical_constructs-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c49fbbefa3e7efcaad967c4e1bba9f14d63a6fb961b7fe8ebf0ab95fbe1feb63
MD5 0f5d7b62b7d9664f1602a980b83daa25
BLAKE2b-256 c5cb0f0386f6d62348dac8665c60b552054858cf24acecfccfa474999696eb2c

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