Skip to content

Commit 064cb7d

Browse files
committed
Merge branch 'ODSC-43343-query-builder-fix' of github.com:oracle/accelerated-data-science into ODSC-43343-query-builder-fix
2 parents 3a4d88d + d14e68e commit 064cb7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2567
-67
lines changed

.github/workflows/publish-to-readthedocs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: "Publish Docs"
22

3-
on:
4-
# Auto-trigger this workflow on tag creation
5-
push:
6-
tags:
7-
- 'v*.*.*'
3+
# To run this workflow manually from the Actions tab
4+
on: workflow_dispatch
85

96
env:
107
RTDS_ADS_PROJECT: https://readthedocs.org/api/v3/projects/accelerated-data-science

.gitleaks.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
title = "Gitleaks Config"
2+
3+
# Gitleaks feature, extending the existing base config from:
4+
# https://github.com/zricethezav/gitleaks/blob/master/config/gitleaks.toml
5+
[extend]
6+
useDefault = true
7+
8+
# Allowlist's 'stopwords' and 'regexes' excludes any secrets or mathching patterns from the current repository.
9+
# Paths listed in allowlist will not be scanned.
10+
[allowlist]
11+
description = "Global allow list"
12+
stopwords = ["test_password", "sample_key"]
13+
regexes = [
14+
'''example-password''',
15+
'''this-is-not-the-secret''',
16+
'''<redacted>'''
17+
]
18+
paths = [
19+
'''tests/integration/tests_configs.yaml'''
20+
]
21+
22+
# Describe rule to search real ocids
23+
[[rules]]
24+
description = "Real ocids"
25+
id = "ocid"
26+
regex = '''ocid[123]\.[a-z1-9A-Z]*\.oc\d\.[a-z1-9A-Z]*\.[a-z1-9A-Z]+'''
27+
keywords = [
28+
"ocid"
29+
]
30+
31+
# Describe rule to search generic secrets
32+
[[rules]]
33+
description = "Generic secret"
34+
id = "generic-secret"
35+
regex = '''(?i)((key|api|token|secret|passwd|password|psw|pass|pswd)[a-z0-9_ .\-,]{0,25})(=|>|:=|\|\|:|<=|=>|:).{0,5}['\"]([0-9a-zA-Z!@#$%^&*<>\\\-_.=]{3,100})['\"]'''
36+
entropy = 0
37+
secretGroup = 4
38+
keywords = [
39+
"key","api","token","secret","passwd","password", "psw", "pass", "pswd"
40+
]

.pre-commit-config.yaml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
repos:
2+
# Standard hooks
23
- repo: https://github.com/pre-commit/pre-commit-hooks
34
rev: v4.4.0
45
hooks:
56
- id: check-ast
7+
exclude: ^docs/
68
- id: check-docstring-first
7-
exclude: ^tests/
9+
exclude: ^(docs/|tests/)
810
- id: check-json
911
- id: check-merge-conflict
1012
- id: check-yaml
@@ -15,14 +17,34 @@ repos:
1517
- id: pretty-format-json
1618
args: ['--autofix']
1719
- id: trailing-whitespace
20+
args: [--markdown-linebreak-ext=md]
21+
exclude: ^docs/
22+
# Black, the code formatter, natively supports pre-commit
1823
- repo: https://github.com/psf/black
19-
rev: 22.12.0
24+
rev: 23.3.0
2025
hooks:
2126
- id: black
27+
exclude: ^docs/
28+
# Regex based rst files common mistakes detector
2229
- repo: https://github.com/pre-commit/pygrep-hooks
23-
rev: v1.9.0
30+
rev: v1.10.0
2431
hooks:
2532
- id: rst-backticks
33+
files: ^docs/
2634
- id: rst-inline-touching-normal
27-
28-
exclude: ^(docs/)
35+
files: ^docs/
36+
# Hardcoded secrets and ocids detector
37+
- repo: https://github.com/gitleaks/gitleaks
38+
rev: v8.17.0
39+
hooks:
40+
- id: gitleaks
41+
# Oracle copyright checker
42+
- repo: https://github.com/oracle-samples/oci-data-science-ai-samples/
43+
rev: cbe0136
44+
hooks:
45+
- id: check-copyright
46+
name: check-copyright
47+
entry: .pre-commit-scripts/check-copyright.py
48+
language: script
49+
types_or: ['python', 'shell', 'bash']
50+
exclude: ^docs/

ads/ads_version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "2.8.6"
2+
"version": "2.8.7"
33
}

0 commit comments

Comments
 (0)