Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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 }}
4 changes: 2 additions & 2 deletions .github/workflows/overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
uses: actions/checkout@v4

- name: Track Overrides
uses: diamorafaela/track-overrides@main
uses: agritheory/test_utils/actions/track_overrides@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
app: cloud_storage
84 changes: 35 additions & 49 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,90 +4,76 @@ fail_fast: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
files: 'cloud_storage.*'
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: https://github.com/asottile/pyupgrade
rev: v3.15.2
rev: v3.19.1
hooks:
- id: pyupgrade
args: ['--py310-plus']

- repo: https://github.com/frappe/black
- repo: https://github.com/agritheory/black
rev: 951ccf4d5bb0d692b457a5ebc4215d755618eb68
hooks:
- id: black

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
types_or: [javascript, vue, scss]
# Ignore any files that might contain jinja / bundles
exclude: |
(?x)^(
.*node_modules.*|
cloud_storage/public/dist/.*|
cloud_storage/public/js/lib/.*|
cloud_storage/templates/includes/.*
)$

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.44.0
hooks:
- id: eslint
types_or: [javascript]
args: ['--quiet']
# Ignore any files that might contain jinja / bundles
exclude: |
(?x)^(
.*node_modules.*|
cloud_storage/public/dist/.*|
cloud_storage/public/js/lib/.*|
cloud_storage/templates/includes/.*
)$

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

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

- 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: v1.3.2
rev: v1.15.4
hooks:
- id: update_pre_commit_config
- id: validate_frappe_project
- id: validate_copyright
files: '\.(js|ts|py|md)$'
args: ['--app', 'cloud_storage']
- id: bylines
exclude: 'README.md|CHANGELOG.md'
- id: clean_customized_doctypes
args: ['--app', 'cloud_storage']
- id: validate_customizations
# - id: validate_javascript_dependencies
- id: patch_linters
args: ['--app', 'cloud_storage']
- id: track_overrides
args: ['--directory', '.', '--app', 'cloud_storage', '--base-branch', 'version-15']

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [javascript, vue, scss]
exclude: |
(?x)^(
.*node_modules.*|
cloud_storage/public/dist/.*|
cloud_storage/public/js/lib/.*|
cloud_storage/templates/includes/.*
)$

ci:
autoupdate_schedule: weekly
Expand Down
Loading
Loading