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.3.0b0.tar.gz (185.6 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.3.0b0-py3-none-any.whl (183.5 kB view details)

Uploaded Python 3

File details

Details for the file projen_practical_constructs-0.3.0b0.tar.gz.

File metadata

File hashes

Hashes for projen_practical_constructs-0.3.0b0.tar.gz
Algorithm Hash digest
SHA256 f69a584581c41d66cb45e869c2c0d5d0406fd18efe830eafa8b682c38883106b
MD5 3752a8398d390987c57bec9c91342dc5
BLAKE2b-256 ecd4153c4b149004ffb808f90f20c3c95940cc38ab6985ef2e86658186b1c698

See more details on using hashes here.

File details

Details for the file projen_practical_constructs-0.3.0b0-py3-none-any.whl.

File metadata

File hashes

Hashes for projen_practical_constructs-0.3.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b841b26de52e34a8076af31439b4af7d7ac43d6dff72be338a764a150a461e0b
MD5 1fa83c2278daef43f654c4ca4a8fa5cc
BLAKE2b-256 ce673eadd1d6a4d6e7dc2fab4988ee27473fd1fa1e2cdae593f0f81b55d155a3

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