-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #840 from The-Commit-Company/develop
Release v1.5
- Loading branch information
Showing
310 changed files
with
21,058 additions
and
6,467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[flake8] | ||
ignore = | ||
E121, | ||
E126, | ||
E127, | ||
E128, | ||
E203, | ||
E225, | ||
E226, | ||
E231, | ||
E241, | ||
E251, | ||
E261, | ||
E265, | ||
E302, | ||
E303, | ||
E305, | ||
E402, | ||
E501, | ||
E741, | ||
W291, | ||
W292, | ||
W293, | ||
W391, | ||
W503, | ||
W504, | ||
F403, | ||
B007, | ||
B950, | ||
W191, | ||
E124, # closing bracket, irritating while writing QB code | ||
E131, # continuation line unaligned for hanging indent | ||
E123, # closing bracket does not match indentation of opening bracket's line | ||
E101, # ensured by use of black | ||
|
||
max-line-length = 200 | ||
exclude=.github/helper/semgrep_rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[flake8] | ||
ignore = | ||
B001, | ||
B007, | ||
B009, | ||
B010, | ||
B950, | ||
E101, | ||
E111, | ||
E114, | ||
E116, | ||
E117, | ||
E121, | ||
E122, | ||
E123, | ||
E124, | ||
E125, | ||
E126, | ||
E127, | ||
E128, | ||
E131, | ||
E201, | ||
E202, | ||
E203, | ||
E211, | ||
E221, | ||
E222, | ||
E223, | ||
E224, | ||
E225, | ||
E226, | ||
E228, | ||
E231, | ||
E241, | ||
E242, | ||
E251, | ||
E261, | ||
E262, | ||
E265, | ||
E266, | ||
E271, | ||
E272, | ||
E273, | ||
E274, | ||
E301, | ||
E302, | ||
E303, | ||
E305, | ||
E306, | ||
E402, | ||
E501, | ||
E502, | ||
E701, | ||
E702, | ||
E703, | ||
E741, | ||
F401, | ||
F403, | ||
F405, | ||
W191, | ||
W291, | ||
W292, | ||
W293, | ||
W391, | ||
W503, | ||
W504, | ||
E711, | ||
E129, | ||
F841, | ||
E713, | ||
E712, | ||
|
||
|
||
max-line-length = 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Linters | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
linters: | ||
name: Semantic Commits | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'pull_request' | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install and Run Pre-commit | ||
uses: pre-commit/action@v2.0.3 | ||
|
||
- name: Download Semgrep rules | ||
run: git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules | ||
|
||
- name: Download semgrep | ||
run: pip install semgrep | ||
|
||
- name: Run Semgrep rules | ||
run: semgrep ci --config ./frappe-semgrep-rules/rules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
exclude: "node_modules|.git" | ||
default_stages: [commit] | ||
fail_fast: false | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
files: "raven.*" | ||
exclude: ".*json$|.*txt$|.*csv|.*md|.*svg" | ||
- id: check-yaml | ||
- id: check-merge-conflict | ||
- id: check-ast | ||
- id: check-json | ||
- id: check-toml | ||
- id: debug-statements | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.34.0 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--py310-plus"] | ||
|
||
- repo: https://github.com/adityahase/black | ||
rev: 9cb0a69f4d0030cdf687eddf314468b39ed54119 | ||
hooks: | ||
- id: black | ||
additional_dependencies: ["click==8.0.4"] | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: ["flake8-bugbear", "flake8-tuple"] | ||
args: ["--config", ".github/helper/flake8.conf"] | ||
|
||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
exclude: ".*setup.py$" | ||
|
||
ci: | ||
autoupdate_schedule: weekly | ||
skip: [] | ||
submodules: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.devcontainer/docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
meta { | ||
name: Get Messages | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{url}}:{{port}}/api/method/raven.api.chat_stream.get_messages?channel_id=general | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
channel_id: general | ||
~channel_id: admin-private | ||
~channel_id: does-not-exist | ||
} | ||
|
||
headers { | ||
Authorization: token {{api_key}}:{{api_secret}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
meta { | ||
name: login | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{url}}:{{port}}/api/method/login?usr=Administrator&pwd=admin | ||
body: none | ||
auth: none | ||
} | ||
|
||
query { | ||
usr: Administrator | ||
pwd: admin | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "default", | ||
"rsc": false, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "src/index.css", | ||
"baseColor": "slate", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.