projen-practical-constructs
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i projen-practical-constructs

Weekly Downloads

16

Version

0.0.0

License

MIT

Unpacked Size

632 kB

Total Files

172

Last publish

Collaborators

  • flaviostutz