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.1.5.tar.gz (115.8 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.1.5-py3-none-any.whl (114.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for projen_practical_constructs-0.1.5.tar.gz
Algorithm Hash digest
SHA256 57ac6a217e9c860826c5e09b2bde8b4c1c2246a139e299a421bf874cc2474040
MD5 18f461d4879790fd01ef26c100d9bcd7
BLAKE2b-256 aa045174ef98f1949f329e89cc0ee25ad8ec29d786e04562f80e6c03f9d78b94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for projen_practical_constructs-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aa0d31eb5ed4634a205e110137c58cfab408d1a70596c572f5c26dc17bc7fdeb
MD5 2947c81fac36923125e6e64d25016148
BLAKE2b-256 94cf3be163074d87419c87ec14c39fdd7e0c9e1a8c6a269941816520c40d0c35

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