Skip to content

Commit a53eb72

Browse files
Formatting
Signed-off-by: Shahm Najeeb <[email protected]>
1 parent 963073c commit a53eb72

26 files changed

+270
-241
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Report a bug
22
description: Tell us about a bug or issue you may have identified in Logicytics.
33
title: "Provide a general summary of the issue"
4-
labels: ["progress/Unreviewed"]
4+
labels: [ "progress/Unreviewed" ]
55
assignees: "DefinetlyNotAI"
66
body:
77
- type: checkboxes

.github/ISSUE_TEMPLATE/dev_bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Report a development bug
22
description: Tell us about a bug or issue you may have identified while developing Logicytics.
33
title: "Provide a general summary of the development issue"
4-
labels: ["progress/Unreviewed", "type/Development"]
4+
labels: [ "progress/Unreviewed", "type/Development" ]
55
assignees: "DefinetlyNotAI"
66
body:
77
- type: checkboxes

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Feature request
22
description: Suggest new or updated features to include in Logicytics.
33
title: "Suggest a new feature"
4-
labels: ["progress/Unreviewed"]
4+
labels: [ "progress/Unreviewed" ]
55
assignees: "DefinetlyNotAI"
66
body:
77
- type: checkboxes

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
- [ ] I have [searched](https://github.com/DefinetlyNotAI/Logicytics/pulls) for duplicate or closed issues.
99
- [ ] I have read the [contributing guidelines](https://github.com/DefinetlyNotAI/Logicytics/blob/main/CONTRIBUTING.md).
10-
- [ ] I have followed the instructions in the [wiki](https://github.com/DefinetlyNotAI/Logicytics/wiki) about contributions.
10+
- [ ] I have followed the instructions in the [wiki](https://github.com/DefinetlyNotAI/Logicytics/wiki) about
11+
contributions.
1112
- [ ] I have updated the documentation accordingly, if required.
1213
- [ ] I have tested my code with the `--dev` flag, if required.
1314

.github/workflows/codeql.yml

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ jobs:
4646
fail-fast: false
4747
matrix:
4848
include:
49-
- language: actions
50-
build-mode: none
51-
- language: python
52-
build-mode: none
49+
- language: actions
50+
build-mode: none
51+
- language: python
52+
build-mode: none
5353
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
5454
# Use `c-cpp` to analyze code written in C, C++ or both
5555
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -59,50 +59,50 @@ jobs:
5959
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
6060
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
6161
steps:
62-
- name: Harden the runner (Audit all outbound calls)
63-
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
64-
with:
65-
egress-policy: audit
62+
- name: Harden the runner (Audit all outbound calls)
63+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
64+
with:
65+
egress-policy: audit
6666

67-
- name: Checkout repository
68-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
67+
- name: Checkout repository
68+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6969

70-
# Add any setup steps before running the `github/codeql-action/init` action.
71-
# This includes steps like installing compilers or runtimes (`actions/setup-node`
72-
# or others). This is typically only required for manual builds.
73-
# - name: Setup runtime (example)
74-
# uses: actions/setup-example@v1
70+
# Add any setup steps before running the `github/codeql-action/init` action.
71+
# This includes steps like installing compilers or runtimes (`actions/setup-node`
72+
# or others). This is typically only required for manual builds.
73+
# - name: Setup runtime (example)
74+
# uses: actions/setup-example@v1
7575

76-
# Initializes the CodeQL tools for scanning.
77-
- name: Initialize CodeQL
78-
uses: github/codeql-action/init@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
79-
with:
80-
languages: ${{ matrix.language }}
81-
build-mode: ${{ matrix.build-mode }}
82-
# If you wish to specify custom queries, you can do so here or in a config file.
83-
# By default, queries listed here will override any specified in a config file.
84-
# Prefix the list here with "+" to use these queries and those in the config file.
76+
# Initializes the CodeQL tools for scanning.
77+
- name: Initialize CodeQL
78+
uses: github/codeql-action/init@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
79+
with:
80+
languages: ${{ matrix.language }}
81+
build-mode: ${{ matrix.build-mode }}
82+
# If you wish to specify custom queries, you can do so here or in a config file.
83+
# By default, queries listed here will override any specified in a config file.
84+
# Prefix the list here with "+" to use these queries and those in the config file.
8585

86-
# For more 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
87-
# queries: security-extended,security-and-quality
86+
# For more 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
87+
# queries: security-extended,security-and-quality
8888

89-
# If the analyze step fails for one of the languages you are analyzing with
90-
# "We were unable to automatically build your code", modify the matrix above
91-
# to set the build mode to "manual" for that language. Then modify this step
92-
# to build your code.
93-
# ℹ️ Command-line programs to run using the OS shell.
94-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
95-
- if: matrix.build-mode == 'manual'
96-
shell: bash
97-
run: |
98-
echo 'If you are using a "manual" build mode for one or more of the' \
99-
'languages you are analyzing, replace this with the commands to build' \
100-
'your code, for example:'
101-
echo ' make bootstrap'
102-
echo ' make release'
103-
exit 1
89+
# If the analyze step fails for one of the languages you are analyzing with
90+
# "We were unable to automatically build your code", modify the matrix above
91+
# to set the build mode to "manual" for that language. Then modify this step
92+
# to build your code.
93+
# ℹ️ Command-line programs to run using the OS shell.
94+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
95+
- if: matrix.build-mode == 'manual'
96+
shell: bash
97+
run: |
98+
echo 'If you are using a "manual" build mode for one or more of the' \
99+
'languages you are analyzing, replace this with the commands to build' \
100+
'your code, for example:'
101+
echo ' make bootstrap'
102+
echo ' make release'
103+
exit 1
104104
105-
- name: Perform CodeQL Analysis
106-
uses: github/codeql-action/analyze@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
107-
with:
108-
category: "/language:${{matrix.language}}"
105+
- name: Perform CodeQL Analysis
106+
uses: github/codeql-action/analyze@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
107+
with:
108+
category: "/language:${{matrix.language}}"

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
# Source repository: https://github.com/actions/dependency-review-action
99
name: 'Dependency Review'
10-
on: [pull_request]
10+
on: [ pull_request ]
1111

1212
permissions:
1313
contents: read

.github/workflows/greetings.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Greetings
22

3-
on: [pull_request_target, issues]
3+
on: [ pull_request_target, issues ]
44

55
permissions:
66
contents: read
@@ -12,13 +12,13 @@ jobs:
1212
issues: write
1313
pull-requests: write
1414
steps:
15-
- name: Harden Runner
16-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
17-
with:
18-
egress-policy: audit
15+
- name: Harden Runner
16+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
17+
with:
18+
egress-policy: audit
1919

20-
- uses: actions/first-interaction@3c71ce730280171fd1cfb57c00c774f8998586f7 # v1
21-
with:
22-
repo-token: ${{ secrets.GITHUB_TOKEN }}
23-
issue-message: "Hi! Thanks for pointing out an issue/suggestion for the first time to Logicytics 🤗 We hope it goes as smoothly as possible."
24-
pr-message: "Hi! Thanks for contributing for the first time to Logicytics 🤗 We hope it goes as smoothly as possible and appreciate your valuable contribution."
20+
- uses: actions/first-interaction@3c71ce730280171fd1cfb57c00c774f8998586f7 # v1
21+
with:
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
issue-message: "Hi! Thanks for pointing out an issue/suggestion for the first time to Logicytics 🤗 We hope it goes as smoothly as possible."
24+
pr-message: "Hi! Thanks for contributing for the first time to Logicytics 🤗 We hope it goes as smoothly as possible and appreciate your valuable contribution."

.github/workflows/stale.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Mark stale issues and pull requests
77

88
on:
99
schedule:
10-
- cron: '00 00 * * *'
10+
- cron: '00 00 * * *'
1111

1212
permissions:
1313
contents: read
@@ -21,15 +21,15 @@ jobs:
2121
pull-requests: write
2222

2323
steps:
24-
- name: Harden Runner
25-
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
26-
with:
27-
egress-policy: audit
24+
- name: Harden Runner
25+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
26+
with:
27+
egress-policy: audit
2828

29-
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
30-
with:
31-
repo-token: ${{ secrets.GITHUB_TOKEN }}
32-
stale-issue-message: 'Stale issue message'
33-
stale-pr-message: 'Stale pull request message'
34-
stale-issue-label: 'progress/Stale'
35-
stale-pr-label: 'progress/Stale'
29+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
30+
with:
31+
repo-token: ${{ secrets.GITHUB_TOKEN }}
32+
stale-issue-message: 'Stale issue message'
33+
stale-pr-message: 'Stale pull request message'
34+
stale-issue-label: 'progress/Stale'
35+
stale-pr-label: 'progress/Stale'

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
2-
- repo: https://github.com/gitleaks/gitleaks
3-
rev: v8.16.3
4-
hooks:
5-
- id: gitleaks
6-
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.4.0
8-
hooks:
9-
- id: end-of-file-fixer
10-
- id: trailing-whitespace
11-
- repo: https://github.com/pylint-dev/pylint
12-
rev: v2.17.2
13-
hooks:
14-
- id: pylint
2+
- repo: https://github.com/gitleaks/gitleaks
3+
rev: v8.16.3
4+
hooks:
5+
- id: gitleaks
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.4.0
8+
hooks:
9+
- id: end-of-file-fixer
10+
- id: trailing-whitespace
11+
- repo: https://github.com/pylint-dev/pylint
12+
rev: v2.17.2
13+
hooks:
14+
- id: pylint

CODE/Logicytics.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ def __performance(self):
242242

243243
try:
244244
with open(
245-
f"../ACCESS/LOGS/PERFORMANCE/Performance_Summary_"
246-
f"{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.txt",
247-
"w",
245+
f"../ACCESS/LOGS/PERFORMANCE/Performance_Summary_"
246+
f"{datetime.now().strftime('%Y-%m-%d_%H-%M-%S')}.txt",
247+
"w",
248248
) as f:
249249
f.write(table.get_string())
250250
f.write("\nNote: This test only measures execution time.\n")
@@ -270,8 +270,8 @@ def update() -> tuple[str, str]:
270270
# Check if git command is available
271271
try:
272272
if (
273-
subprocess.run(["git", "--version"], capture_output=True).returncode
274-
!= 0
273+
subprocess.run(["git", "--version"], capture_output=True).returncode
274+
!= 0
275275
):
276276
return "Git is not installed or not available in the PATH.", "error"
277277
except FileNotFoundError:

0 commit comments

Comments
 (0)