Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit 417e5d0

Browse files
aorumbayevMillionAlgosFather
and
MillionAlgosFather
authored
feat: adding error tracking; removing husky (#42)
* chore: refining UI * feat: configuring glitchtip (oss sentry) * chore: removing husky; setting pre-commit as main formatter * feat: testing ci * feat: improving pre-commit * feat: tweaking bugs Co-authored-by: MillionAlgosFather <info@algoworld.io>
1 parent c7e6901 commit 417e5d0

File tree

107 files changed

+965
-408
lines changed

Some content is hidden

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

107 files changed

+965
-408
lines changed

.github/workflows/ci.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Check PR
22

33
on:
4-
pull_request:
5-
branches:
6-
- "*"
4+
pull_request:
5+
branches:
6+
- '*'
77

88
jobs:
99
run-ci:
@@ -24,19 +24,19 @@ jobs:
2424
with:
2525
node-version: 16
2626

27-
- uses: pre-commit/action@v2.0.3
28-
name: "Check python vercel functions"
29-
with:
30-
extra_args: --all-files --show-diff-on-failure
31-
3227
- name: Install dependencies (with cache)
3328
uses: bahmutov/npm-install@v1
3429

35-
- name: Check types
30+
- name: Run TypeScript type check
3631
run: yarn type-check
3732

38-
- name: Check linting
33+
- name: Run TypeScript lint
3934
run: yarn lint
4035

36+
- uses: pre-commit/action@v2.0.3
37+
name: 'Run pre-commit checks'
38+
with:
39+
extra_args: --all-files --show-diff-on-failure
40+
4141
- name: Check commits messages
4242
uses: wagoid/commitlint-github-action@v4

.github/workflows/codeql-analysis.yml

+29-30
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: 'CodeQL'
1313

1414
on:
1515
push:
16-
branches: [ "main" ]
16+
branches: ['main']
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ "main" ]
19+
branches: ['main']
2020
schedule:
2121
- cron: '15 21 * * 1'
2222

@@ -32,41 +32,40 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'javascript', 'python' ]
35+
language: ['javascript', 'python']
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
5151

52-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
# queries: security-extended,security-and-quality
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
5454

55+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56+
# If this step fails, then you should remove it and run the build manually (see below)
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@v2
5559

56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6062

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
6365

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
65-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
# - run: |
67+
# echo "Run, Build Application using script"
68+
# ./location_of_script_within_repo/buildscript.sh
6669

67-
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
70-
71-
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v2

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Trigger release
22

33
on:
4-
push:
5-
branches:
6-
- "main"
4+
push:
5+
branches:
6+
- 'main'
77

88
jobs:
99
run-ci:
@@ -25,6 +25,6 @@ jobs:
2525
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
2626
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
2727
vercel-args: '--prod' #Optional
28-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
28+
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
2929
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required
3030
working-directory: ./

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ yarn-error.log*
4242

4343
#python
4444
.venv
45+
46+
# Sentry
47+
.sentryclirc

.husky/commit-msg

-5
This file was deleted.

.husky/common.sh

-8
This file was deleted.

.husky/pre-commit

-6
This file was deleted.

.pre-commit-config.yaml

+45-25
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,49 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.3.0
4-
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.3.0
4+
hooks:
5+
- id: check-yaml
6+
stages: [commit]
7+
- id: end-of-file-fixer
8+
stages: [commit]
9+
- id: trailing-whitespace
10+
stages: [commit]
811

9-
- repo: https://github.com/psf/black
10-
rev: 22.3.0
11-
hooks:
12-
- id: black
12+
- repo: https://github.com/psf/black
13+
rev: 22.3.0
14+
hooks:
15+
- id: black
16+
stages: [commit]
1317

14-
- repo: https://github.com/pycqa/isort
15-
rev: 5.10.1
16-
hooks:
17-
- id: isort
18-
args: ["--profile", "black"]
18+
- repo: https://github.com/pycqa/isort
19+
rev: 5.10.1
20+
hooks:
21+
- id: isort
22+
args: ['--profile', 'black']
23+
stages: [commit]
1924

20-
- repo: https://github.com/myint/autoflake
21-
rev: v1.4
22-
hooks:
23-
- id: autoflake
24-
args:
25-
- --in-place
26-
- --remove-unused-variables
27-
- --remove-all-unused-imports
28-
- --expand-star-imports
29-
- --ignore-init-module-imports
25+
- repo: https://github.com/myint/autoflake
26+
rev: v1.4
27+
hooks:
28+
- id: autoflake
29+
args:
30+
- --in-place
31+
- --remove-unused-variables
32+
- --remove-all-unused-imports
33+
- --expand-star-imports
34+
- --ignore-init-module-imports
35+
stages: [commit]
36+
37+
- repo: https://github.com/pre-commit/mirrors-prettier
38+
rev: v2.6.2
39+
hooks:
40+
- id: prettier
41+
stages: [commit]
42+
43+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
44+
rev: v8.0.0
45+
hooks:
46+
- id: commitlint
47+
stages: [commit-msg]
48+
- id: commitlint-travis
49+
stages: [manual]

LICENSE.header.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ the Free Software Foundation, either version 3 of the License, or
88

99
This program is distributed in the hope that it will be useful,
1010
but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1212
GNU General Public License for more details.
1313

1414
You should have received a copy of the GNU General Public License
15-
along with this program. If not, see <http://www.gnu.org/licenses/>.
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.

0 commit comments

Comments
 (0)