Skip to content

Commit

Permalink
chore: add backport config and added codespell pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MyuddinKhatri committed Aug 12, 2024
1 parent 12d5afa commit b83808e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Backport
on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
name: Backport
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
steps:
- uses: tibdex/backport@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,15 @@ repos:
exclude: ^tests/
args: [--ignore-missing-imports]

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli

- repo: https://github.com/agritheory/test_utils
rev: v0.14.0
rev: v0.15.0
hooks:
- id: update_pre_commit_config
- id: validate_copyright
Expand Down
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ locale
*.egg-info
dist/
# build/
cloud_storage/docs/current
cloud_storage/public/dist
inventory_tools/docs/current
inventory_tools/public/dist
.vscode
.vs
node_modules
Expand Down

1 comment on commit b83808e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
inventory_tools
   __init__.py50100% 
   customize.py24240%4–47
   hooks.py170100% 
inventory_tools/inventory_tools
   __init__.py00100% 
   boot.py660%1–8
inventory_tools/inventory_tools/doctype
   __init__.py00100% 
inventory_tools/inventory_tools/doctype/inventory_tools_settings
   __init__.py00100% 
   inventory_tools_settings.py593541%16–17, 24–45, 60–65, 73–78, 85–91
   test_inventory_tools_settings.py30100% 
inventory_tools/inventory_tools/doctype/purchase_invoice_subcontracting_detail
   __init__.py00100% 
   purchase_invoice_subcontracting_detail.py330%5–9
inventory_tools/inventory_tools/doctype/purchase_order_subcontracting_detail
   __init__.py00100% 
   purchase_order_subcontracting_detail.py30100% 
inventory_tools/inventory_tools/doctype/subcontracting_default
   __init__.py00100% 
   subcontracting_default.py330%5–9
inventory_tools/inventory_tools/overrides
   job_card.py17288%25, 32
   purchase_order.py14810032%22, 81–84, 93–101, 112–131, 136–154, 159–222, 234–240, 253, 262–264, 269–274
   sales_order.py24196%46
   stock_entry.py781976%77–78, 81, 87, 96, 104, 162, 168, 172, 180–200
   uom.py611280%21–23, 44–45, 84, 91, 109–114
   warehouse.py431663%12, 17, 36–37, 40, 54–68
   work_order.py25120817%26–29, 32–37, 40–42, 45–46, 49–50, 57–58, 65–93, 102–112, 125–158, 175, 178–181, 191–232, 240–270, 276–289, 293–316, 320–357, 365–380, 385–471, 476–498, 512
inventory_tools/inventory_tools/report
   __init__.py00100% 
inventory_tools/inventory_tools/report/manufacturing_capacity
   __init__.py00100% 
   manufacturing_capacity.py805531%11–12, 16, 84–115, 127–133, 214–296, 311–316, 324–338
inventory_tools/inventory_tools/report/material_demand
   __init__.py00100% 
   material_demand.py148994%18, 207–208, 227, 240, 248, 258, 274, 315
inventory_tools/inventory_tools/report/quotation_demand
   __init__.py00100% 
   quotation_demand.py63494%14, 48, 164, 184
inventory_tools/tests
   conftest.py24292%29–30
   test_alternative_workstation.py14843%19–37
   test_manufacturing_capacity.py500100% 
   test_material_demand.py117893%47, 92, 129, 136–138, 185, 233
   test_overproduction.py930100% 
   test_quotation_demand_report.py71199%43
   test_uom.py26485%43–46
   test_warehouse_path.py120100% 
TOTAL144352064% 

Please sign in to comment.