Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a lid built-in expression variable #605

Merged
merged 2 commits into from
Mar 11, 2023
Merged

Add a lid built-in expression variable #605

merged 2 commits into from
Mar 11, 2023

Conversation

abey79
Copy link
Owner

@abey79 abey79 commented Mar 11, 2023

Description

This PR adds a lid built-in expression variable for generator and layer processor commands. This enables things like:

vpype [...] name "Layer %lid%" [...]

Checklist

  • feature/fix implemented
  • code formatting ok (black and isort)
  • mypy returns no error
  • tests added/updated and pytest succeeds
  • documentation added/updated
    • command docstring and option/argument help
    • README.md updated (Feature Overview)
    • CHANGELOG.md updated
    • added new command to reference.rst
    • RTD doc updated and building with no error (make clean && make html in docs/)

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Mar 11, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (b70ab77) 94.73% compared to head (c973f25) 94.74%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #605   +/-   ##
=======================================
  Coverage   94.73%   94.74%           
=======================================
  Files          62       62           
  Lines        5683     5690    +7     
  Branches     1300     1302    +2     
=======================================
+ Hits         5384     5391    +7     
  Misses        182      182           
  Partials      117      117           
Impacted Files Coverage Δ
tests/test_substitution.py 98.40% <100.00%> (+0.06%) ⬆️
vpype_cli/decorators.py 95.34% <100.00%> (+0.11%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@abey79 abey79 merged commit 292f1b3 into master Mar 11, 2023
@abey79 abey79 deleted the feature-lid-variable branch March 11, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant