Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 0 additions & 169 deletions .github/validate_customizations.py

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/code-duplication.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Code Duplication

on:
push:
branches: ["*"]
pull_request:
branches: ["*"]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
duplication:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: '18'

- uses: agritheory/test_utils/actions/code_duplication@main
with:
max_clones: 60
max_percentage: 5.0
23 changes: 23 additions & 0 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Generate Changelog

on:
pull_request:
types: [opened, reopened, synchronize]
issue_comment:
types: [created]

jobs:
generate-changelog:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write

steps:
- uses: actions/checkout@v4

- name: Generate Changelog
uses: agritheory/test_utils/actions/generate_changelog@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
20 changes: 20 additions & 0 deletions .github/workflows/overrides.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Track Overrides

on:
pull_request:
branches:
- version-14
- version-15

jobs:
track_overrides:
runs-on: ubuntu-latest
name: Track Overrides
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Track Overrides
uses: agritheory/test_utils/actions/track_overrides@main
with:
app: beam
64 changes: 38 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,30 @@ repos:
exclude: '.*json$|.*txt$|.*csv|.*md|.*svg'
- id: check-yaml
- id: no-commit-to-branch
args: ['--branch', 'develop']
args: ['--branch', 'version-15', '--branch', 'version-16']
- id: check-merge-conflict
- id: check-ast
- id: check-json
- id: check-toml
- id: check-yaml
- id: debug-statements

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
hooks:
- id: codespell
args: ["--ignore-words-list", "notin"]
exclude: 'yarn.lock|poetry.lock'
additional_dependencies:
- tomli

- repo: local
hooks:
- id: no-titled-beam
name: "Use 'BEAM' not 'Beam'"
language: pygrep
entry: '\bBeam\b'
files: '\.md$'

- repo: https://github.com/asottile/pyupgrade
rev: v3.20.0
hooks:
Expand All @@ -30,47 +46,43 @@ repos:
hooks:
- id: black

- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: [--remove-all-unused-imports, --in-place]

- repo: https://github.com/PyCQA/isort
rev: 6.0.1
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 7.3.0
rev: 7.2.0
hooks:
- id: flake8
additional_dependencies: ['flake8-bugbear']

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

- repo: https://github.com/agritheory/test_utils
rev: v1.0.0
rev: v1.20.1
hooks:
- id: update_pre_commit_config
- id: validate_frappe_project
- id: validate_copyright
files: '\.(js|ts|py|md)$'
args: ['--app', 'beam']
- id: bylines
exclude: 'README.md|CHANGELOG.md'
- id: clean_customized_doctypes
args: ['--app', 'beam']
- id: validate_customizations
- id: validate_patches
args: ['--app', 'beam']
- id: track_overrides
args: ['--directory', '.', '--app', 'beam', '--base-branch', 'version-15']
- id: check_code_duplication
args: ['--max-clones', '60', '--max-percentage', '5.0']

- repo: local
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
name: prettier
entry: npx prettier . --write --ignore-path .prettierignore
language: node
types_or: [javascript, vue, scss]
exclude: |
(?x)^(
.*node_modules.*|
beam/public/dist/.*|
beam/public/js/lib/.*
)$

ci:
autoupdate_schedule: weekly
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Copyright (c) 2024, AgriTheory and contributors
<!-- Copyright (c) 2026, AgriTheory and contributors
For license information, please see license.txt-->

# CHANGELOG
Expand Down
2 changes: 1 addition & 1 deletion beam/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2025, AgriTheory and contributors
# For license information, please see license.txt

__version__ = "15.4.0"
__version__ = "15.8.0"
Loading
Loading