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.4.5.tar.gz (3.0 MB 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.4.5-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for projen_practical_constructs-0.4.5.tar.gz
Algorithm Hash digest
SHA256 8aba5451bf3d4214eb1354498298cc019e1ce51bd13bcfa6a79b946f9f246085
MD5 c30e679799fb4b51b3b85a95413e4753
BLAKE2b-256 67d05dbc821e63ffb8633655f882b115eaf7d28473707aca8c3cde56bdf8b344

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for projen_practical_constructs-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3bdc58234d46fc289b06d172c1a394c675c0f808cd71a423a51b5f9c0434f4a1
MD5 4289045acdb6f2c9e70951d1936f9d0a
BLAKE2b-256 78f8225a3e23d3e032387a79fb9844e06f3e54f53d54fbc1d322f1f63e60e0ad

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