-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize code to pass linter checks (#445)
--------- Co-authored-by: Vidya Ramakrishnan <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Anish TP <[email protected]> Co-authored-by: Mitesh Ashar <[email protected]>
- Loading branch information
1 parent
6ae1071
commit 8dc4c1e
Showing
197 changed files
with
14,627 additions
and
17,407 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,16 @@ | ||
version = 1 | ||
test_patterns = [ | ||
"tests/**" | ||
] | ||
exclude_patterns = [ | ||
"**/node_modules/", | ||
"migrations/**/*" | ||
] | ||
|
||
[[analyzers]] | ||
name = "python" | ||
enabled = true | ||
runtime_version = "3.x.x" | ||
|
||
[analyzers.meta] | ||
max_line_length = 88 |
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 @@ | ||
const OFF = 0; | ||
const WARN = 1; | ||
const ERROR = 2; | ||
module.exports = { | ||
parser: 'babel-eslint', | ||
env: { | ||
browser: true, | ||
es6: true, | ||
jquery: true, | ||
}, | ||
extends: ['airbnb-base', 'plugin:prettier/recommended'], | ||
rules: { | ||
'no-console': WARN, | ||
'prefer-arrow-callback': [ERROR, { allowNamedFunctions: true }], | ||
'prefer-const': WARN, | ||
'new-cap': WARN, | ||
'no-param-reassign': [ERROR, { props: false }], | ||
// allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? ERROR : OFF, | ||
}, | ||
}; |
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,143 @@ | ||
name: Telegram Notify | ||
on: | ||
issues: | ||
types: [opened, edited, closed, reopened, milestoned, demilestoned] | ||
issue_comment: | ||
types: [created] | ||
push: | ||
pull_request: | ||
types: | ||
# Exclude 'synchronize' as that is duplicated in the 'push' event | ||
[ | ||
assigned, | ||
closed, | ||
converted_to_draft, | ||
edited, | ||
labeled, | ||
locked, | ||
opened, | ||
ready_for_review, | ||
reopened, | ||
review_request_removed, | ||
review_requested, | ||
unassigned, | ||
unlabeled, | ||
unlocked, | ||
] | ||
pull_request_review: | ||
project: | ||
project_card: | ||
types: [created, moved, converted, edited, deleted] | ||
release: | ||
watch: | ||
|
||
jobs: | ||
tguser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: kanga333/variable-mapper@master | ||
with: | ||
key: '${{ github.actor }}' | ||
map: | | ||
{ | ||
"djamg": {"tguser": "@dj_amg"}, | ||
"jace": {"tguser": "@jackerhack"}, | ||
"miteshashar": {"tguser": "@miteshashar"}, | ||
"sankarshanmukhopadhyay": {"tguser": "@sankarshan"}, | ||
"StephanieBr": {"tguser": "@stephaniebrne"}, | ||
"vidya-ram": {"tguser": "@vidya_ramki"}, | ||
"zainabbawa": {"tguser": "@Saaweoh"}, | ||
"anishTP": {"tguser": "@anishtp"}, | ||
".*": {"tguser": "Unknown"} | ||
} | ||
export_to: env | ||
outputs: | ||
tguser: ${{ env.tguser }} | ||
|
||
event_notify_all: | ||
if: ${{ !contains(fromJson('["issues", "issue_comment", "pull_request", "pull_request_review", "push"]'), github.event_name) }} | ||
needs: tguser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
disable_web_page_preview: true | ||
message: | | ||
<b>${{ github.event_name }}</b> by ${{ needs.tguser.outputs.tguser }} (${{ github.actor }}) in https://github.com/${{ github.repository }} | ||
event_issues: | ||
if: ${{ github.event_name == 'issues' }} | ||
needs: tguser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
disable_web_page_preview: true | ||
message: | | ||
<b>${{ github.event_name }}/${{ github.event.action }}</b> by ${{ needs.tguser.outputs.tguser }} (${{ github.actor }}): ${{ github.event.issue.title }} ${{ github.event.issue.html_url }} | ||
event_issue_comment: | ||
if: ${{ github.event_name == 'issue_comment' }} | ||
needs: tguser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
disable_web_page_preview: true | ||
message: | | ||
<b>${{ github.event_name }}/${{ github.event.action }}</b> by ${{ needs.tguser.outputs.tguser }} (${{ github.actor }}) in ${{ github.event.issue.title }} ${{ github.event.issue.html_url }}: | ||
${{ github.event.comment.body }} ${{ github.event.comment.html_url }} | ||
event_pull_request: | ||
if: ${{ github.event_name == 'pull_request' }} | ||
needs: tguser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
disable_web_page_preview: true | ||
message: | | ||
<b>${{ github.event_name }}/${{ github.event.action }}</b> by ${{ needs.tguser.outputs.tguser }} (${{ github.actor }}): ${{ github.event.pull_request.title }} ${{ github.event.pull_request.html_url }} | ||
event_pull_request_review: | ||
if: ${{ github.event_name == 'pull_request_review' }} | ||
needs: tguser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
disable_web_page_preview: true | ||
message: | | ||
<b>${{ github.event_name }}/${{ github.event.action }} (${{ github.event.review.state }})</b> by ${{ needs.tguser.outputs.tguser }} (${{ github.actor }}) in ${{ github.event.pull_request.title }} ${{ github.event.pull_request.html_url }}: | ||
${{ github.event.review.body }} ${{ github.event.review.html_url }} | ||
event_push: | ||
if: ${{ github.event_name == 'push' }} | ||
needs: tguser | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: appleboy/telegram-action@master | ||
with: | ||
to: ${{ secrets.TELEGRAM_TO }} | ||
token: ${{ secrets.TELEGRAM_TOKEN }} | ||
format: html | ||
disable_web_page_preview: true | ||
message: | | ||
<b>${{ github.event_name }}</b> by ${{ needs.tguser.outputs.tguser }} (${{ github.actor }}) in ${{ github.repository }}/${{ github.ref_name }}: ${{ github.event.head_commit.message }} ${{ github.event.compare }} |
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
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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
all: | ||
cd boxoffice/assets; make | ||
all: assets | ||
|
||
assets: | ||
npm install | ||
npm run build | ||
|
||
assetsonly: | ||
npm run build |
Oops, something went wrong.