Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
7407086
Merge pull request #49 from mrayanasim09/l10n_main
mrayanasim09 Aug 11, 2023
55c10d4
Delete .whitesource
mrayanasim09 Aug 11, 2023
7142386
Add .whitesource configuration file
mend-bolt-for-github[bot] Aug 11, 2023
48e842a
Merge pull request #50 from mrayanasim09/whitesource/configure
mrayanasim09 Aug 11, 2023
2ef7ac4
made the file for pull request
mrayanasim09 Aug 11, 2023
e77abbd
Delete .whitesource
mrayanasim09 Aug 11, 2023
37a5477
added for the package
mrayanasim09 Aug 11, 2023
ed3fa0e
Update setup.py
mrayanasim09 Aug 11, 2023
be78fc6
Update setup.py
mrayanasim09 Aug 11, 2023
a7e9f4c
:art: Format Python code with psf/black
mrayanasim09 Aug 11, 2023
723dd1e
Merge pull request #53 from mrayanasim09/actions/black
mrayanasim09 Aug 11, 2023
4e52c81
added pypl fiel
mrayanasim09 Aug 11, 2023
e12dabe
Update publish.yml
mrayanasim09 Aug 11, 2023
aae9158
add blank lines
mrayanasim09 Aug 11, 2023
ff76240
Update setup.py
mrayanasim09 Aug 11, 2023
ef67556
Update publish.yml
mrayanasim09 Aug 11, 2023
7c19d42
Update the name of the package
mrayanasim09 Aug 11, 2023
0d4dd97
changed the version
mrayanasim09 Aug 11, 2023
23d3f84
Update publish.yml
mrayanasim09 Aug 11, 2023
f1c3f77
Rename publish.yml to publish_1.yml
mrayanasim09 Aug 11, 2023
fa707da
Update and rename publish_1.yml to publish.yml
mrayanasim09 Aug 11, 2023
2535018
remove blank lines
mrayanasim09 Aug 11, 2023
d38ce41
make the publish.yml to not run again for solving error
mrayanasim09 Aug 11, 2023
e22f539
changed the package name
mrayanasim09 Aug 11, 2023
de01382
changed the package name
mrayanasim09 Aug 11, 2023
efcd613
made the __intit__.py for package
mrayanasim09 Aug 11, 2023
e496d14
made the __intit__.py for package
mrayanasim09 Aug 11, 2023
ae0d4f8
renamed
mrayanasim09 Aug 11, 2023
8255f15
Update README.md
mrayanasim09 Aug 11, 2023
4006c24
Rename 21.py to twenty-one.py
mrayanasim09 Aug 11, 2023
a91b53a
Rename 2048.py to blocks.py
mrayanasim09 Aug 11, 2023
5984e8c
Update README.md
mrayanasim09 Aug 11, 2023
6955f72
Update __init__.py
mrayanasim09 Aug 11, 2023
135c350
:art: Format Python code with psf/black
mrayanasim09 Aug 11, 2023
9e01017
Merge pull request #54 from mrayanasim09/actions/black
mrayanasim09 Aug 11, 2023
fe558f5
Rename rock,paper,scissors.py to rock-paper-scissors.py
mrayanasim09 Aug 11, 2023
f3f1533
made the __intit__.py for package
mrayanasim09 Aug 11, 2023
e5ea372
Update __init__.py
mrayanasim09 Aug 11, 2023
2b08992
Rename twenty-one.py to twenty_one.py
mrayanasim09 Aug 11, 2023
e9e12c1
Rename rock-paper-scissors.py to rock_paper_scissors.py
mrayanasim09 Aug 11, 2023
9533fce
:art: Format Python code with psf/black
mrayanasim09 Aug 11, 2023
0a7492c
made the minus to hyphen
mrayanasim09 Aug 11, 2023
dd57bed
Merge pull request #55 from mrayanasim09/actions/black
mrayanasim09 Aug 11, 2023
de46771
made the __intit__.py for package
mrayanasim09 Aug 11, 2023
c03b552
made the __intit__.py for package
mrayanasim09 Aug 11, 2023
1070b41
Update __init__.py
mrayanasim09 Aug 11, 2023
35c27f6
Update and rename __init.py to __init__.py
mrayanasim09 Aug 11, 2023
7e4d608
Update __init__.py
mrayanasim09 Aug 11, 2023
afc46d2
Update setup.py
mrayanasim09 Aug 11, 2023
342c060
Update setup.py
mrayanasim09 Aug 11, 2023
19201aa
Create __init__.py
mrayanasim09 Aug 11, 2023
3c9e23c
Create python-publish.yml
mrayanasim09 Aug 11, 2023
2e19269
Delete python-publish.yml
mrayanasim09 Aug 11, 2023
41f8988
Create python-package-conda.yml
mrayanasim09 Aug 11, 2023
b014114
Update python-package-conda.yml
mrayanasim09 Aug 11, 2023
a62cf4a
Update python-package-conda.yml
mrayanasim09 Aug 11, 2023
b868998
Update python-package-conda.yml
mrayanasim09 Aug 11, 2023
b7e77da
Update python-package-conda.yml
mrayanasim09 Aug 11, 2023
54fd76b
Update python-package-conda.yml
mrayanasim09 Aug 11, 2023
cc8feca
Delete python-package-conda.yml
mrayanasim09 Aug 11, 2023
8d1f521
Delete setup.py
mrayanasim09 Aug 11, 2023
820f2ed
Delete __init__.py
mrayanasim09 Aug 11, 2023
120f493
Delete publish.yml
mrayanasim09 Aug 11, 2023
522b6ba
Create CI.yml#
mrayanasim09 Aug 12, 2023
178cd22
Update CI.yml
mrayanasim09 Aug 12, 2023
6bada47
Update CI.yml
mrayanasim09 Aug 12, 2023
fd35e1b
Update CI.yml
mrayanasim09 Aug 12, 2023
a60ecd7
Delete CI.yml
mrayanasim09 Aug 12, 2023
60de9e4
Create codecav.yml
mrayanasim09 Aug 12, 2023
8126aaa
Delete codecav.yml
mrayanasim09 Aug 12, 2023
3adfdc3
added mre badges
mrayanasim09 Aug 12, 2023
1034653
made the initial paragraph more bold
mrayanasim09 Aug 12, 2023
89ecf01
added circle ci data
mrayanasim09 Aug 12, 2023
ff45e7f
added circle ci badge
mrayanasim09 Aug 12, 2023
2bf120d
Update README.md
mrayanasim09 Aug 12, 2023
d7fd340
Update README.md
mrayanasim09 Aug 12, 2023
426354d
Update README.md
mrayanasim09 Aug 12, 2023
b079cff
Update README.md
mrayanasim09 Aug 12, 2023
9222b58
Update README.md
mrayanasim09 Aug 12, 2023
97507dc
Update README.md
mrayanasim09 Aug 12, 2023
d63d1e0
Create dependabot.yml
mrayanasim09 Aug 13, 2023
4c1fd8d
Update dependabot.yml
mrayanasim09 Aug 13, 2023
11ea82a
Create depandant.yml
mrayanasim09 Aug 13, 2023
59330ce
Create python_check.yml
mrayanasim09 Aug 13, 2023
614fa46
Update python_check.yml
mrayanasim09 Aug 13, 2023
182eb38
Delete python_check.yml
mrayanasim09 Aug 13, 2023
e98c847
added more blank lines
mrayanasim09 Aug 13, 2023
8d8c296
Add datree-validation.yml
datreeio[bot] Aug 13, 2023
053dc58
Add datree-validation.yml (#56)
mrayanasim09 Aug 13, 2023
17025e1
Update datree-validation.yml
mrayanasim09 Aug 13, 2023
4884c43
MADE CODEOWNERS FILE
mrayanasim09 Aug 13, 2023
2bdbb4f
moved the file
mrayanasim09 Aug 13, 2023
27f9fe0
changed the path of the file
mrayanasim09 Aug 13, 2023
d93f08b
changed the path
mrayanasim09 Aug 13, 2023
c0b1cf6
changed the path
mrayanasim09 Aug 13, 2023
1c8fa02
moved to root
mrayanasim09 Aug 13, 2023
572654a
Create CONTRIBUTER.md
mrayanasim09 Aug 13, 2023
5e6b20c
add more features in the workflow
mrayanasim09 Aug 13, 2023
d174742
fix the issue with the total result
mrayanasim09 Aug 13, 2023
bcb3951
Update lines.yml
mrayanasim09 Aug 13, 2023
70a7271
Update lines.yml
mrayanasim09 Aug 13, 2023
35aa416
Update lines.yml
mrayanasim09 Aug 13, 2023
6b9b994
Update lines.yml
mrayanasim09 Aug 13, 2023
8e32385
made another issue template
mrayanasim09 Aug 13, 2023
2bae5bb
Update bug_report.md
mrayanasim09 Aug 13, 2023
c354fa1
Update feature_request.md
mrayanasim09 Aug 13, 2023
959829d
added question answer issue template
mrayanasim09 Aug 13, 2023
d502c69
made the pr template more good looking
mrayanasim09 Aug 13, 2023
0a6b8be
added website badge
mrayanasim09 Aug 13, 2023
a6dad2e
made the badge smaller
mrayanasim09 Aug 13, 2023
f179c9b
made the code of conduct more good looknig
mrayanasim09 Aug 13, 2023
fcecb17
uupdate the date
mrayanasim09 Aug 13, 2023
bee70ea
made the badge size small
mrayanasim09 Aug 13, 2023
def4757
update the contributor's list
mrayanasim09 Aug 14, 2023
2f94cb8
formatted the file
mrayanasim09 Aug 14, 2023
4d16cf0
formatted the file
mrayanasim09 Aug 14, 2023
c75dfe3
added more issue templates
mrayanasim09 Aug 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/Question_answer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Question or Help Request ❓
about: Ask a question or request assistance.
title: 'Question: '
labels: bug, documentation, question
assignees: mrayanasim09

---

## ❓ Question or Help Request

**Your Question:**
Clearly state your question or what you need help with.

**Context:**
Provide additional context to help others understand your question.

---
55 changes: 31 additions & 24 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,51 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
name: "Bug Report \U0001F41E"
about: Found a bug? Let us know so we can fix it!
title: 'Bug: '
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.
## Bug Description 🐜

**To Reproduce**
Steps to reproduce the behavior:
**What happened:**
A brief description of the issue you encountered.

**Steps to Reproduce:**
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See the error
4. Error appears!

**What you expected:**
A clear explanation of what you were expecting to happen.

**Expected behavior**
A clear and concise description of what you expected to happen.
## Screenshots πŸ“·

**Screenshots**
If applicable, could you add screenshots to help explain your problem?
**Screenshots:**
If applicable, add screenshots to visualize the problem.

**Desktop (please complete the following information):**
## Your Environment πŸ–₯️

**Desktop:**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
- Browser: [e.g. Chrome, Safari]
- Version: [e.g. 22]

**Smartphone:**
- Device: [e.g. iPhone 6]
- OS: [e.g. iOS 8.1]
- Browser: [e.g. Safari]
- Version: [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
## Additional Context πŸ“

**Additional context**
Please feel free to add any other context about the problem here.
**Anything else:**
Provide any extra information or context that might help us understand the issue better.

---

**Note to Contributors:**

If you would like to contribute a fix for this bug, please follow the guidelines outlined in [CONTRIBUTING.md](https://github.com/mrayanasim09/python-projects/blob/main/CONTRIBUTING.md). Your contributions are highly appreciated!
If you're feeling adventurous and want to help fix this bug, follow the guidelines in [CONTRIBUTING.md](https://github.com/mrayanasim09/python-projects/blob/main/CONTRIBUTING.md). We appreciate your contributions! πŸ‘
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


45 changes: 33 additions & 12 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,41 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
name: "Feature Request \U0001F4A1"
about: Suggest an exciting new idea for this project!
title: 'Feature: '
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
## 🌟 Feature Idea

**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Is your feature request related to a problem? Please describe:**
A concise description of the issue or problem you've encountered that this feature could address. For example, "I often find it difficult to..."

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Describe the solution you'd like:**
A detailed description of the feature you'd like to see added to the project. Explain how it would work and why it's important.

**Additional context**
Add any other context or screenshots about the feature request here.
**Describe any alternatives you've considered:**
If you've thought of other ways to solve the problem or achieve the same goal, share them here.

## πŸš€ Benefits

**How will this feature benefit users and the project?**
Explain how the proposed feature would enhance the user experience or project functionality.

**Potential Use Cases:**
Provide examples of scenarios where this feature could be applied and bring value.

## 🎨 Additional Context

**Additional context or screenshots:**
If you have any relevant images, sketches, or diagrams that help illustrate your idea, feel free to attach them here.

**Implementation Thoughts:**
Share any initial thoughts on how this feature could be implemented, if you have any.

---

**Note to Contributors:**

If you'd like to contribute to the development of this feature, check out [CONTRIBUTING.md](https://github.com/mrayanasim09/python-projects/blob/main/CONTRIBUTING.md) for guidelines. Your creative ideas are highly appreciated! πŸŽ‰
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/ocumentation_mistake_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: "\U0001F4DA Report Documentation Mistake"
about: Found an error in the documentation? Let us know so we can improve it!
title: "[Documentation] Issue Title Here"
labels: bug, documentation
assignees: mrayanasim09

---

## πŸ“ Description

**Describe the Mistake:**
A clear and concise description of the mistake you found in the repository's documentation.

**Document Location:**
Please specify where the mistake can be found (e.g., file name, section, or page URL).

## βœ… Suggested Correction

**Suggest a Correction:**
If you have a suggestion for how to correct the mistake, please provide it here.

## πŸ–ΌοΈ Screenshots (if Applicable)

**Screenshots:**
If applicable, add screenshots to help explain the mistake or provide visual context.

## ℹ️ Additional Information

**Environment (if Relevant):**
If the mistake is related to a specific environment or context, please provide relevant details.

## πŸ“‹ Checklist

- [ ] I have searched the existing issues before creating a new one.
- [ ] I have ensured that this mistake has not been reported before.

## πŸ§‘β€πŸ’» Your Information

**Your GitHub Username:**
Please provide your GitHub username so we can get in touch if needed.

**Additional Comments:**
Any additional comments or information you would like to share.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip" # Specify the package ecosystem (for Python packages)
directory: "/" # Location of package manifests
schedule:
interval: "daily"
open-pull-requests-limit: 5 # Limit the number of open pull requests
reviewers: # Optional: Add reviewers for the pull requests
- "mrayanasim09"
54 changes: 54 additions & 0 deletions .github/workflows/datree-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Datree Workflow

on:
push:
paths:
- '**/*.yaml'
- '**/*.yml'
pull_request:
types: [opened, edited, synchronize, reopened]
paths:
- '**/*.yaml'
- '**/*.yml'

jobs:
configs-validation:
runs-on: ubuntu-latest
env:
DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v19
with:
files: |
*.yaml
*.yml

- name: List all changed files
run: echo ${{ steps.changed-files.outputs.all_changed_files }}

- name: Install Datree's CLI
if: steps.changed-files.outputs.any_changed == 'true'
run: curl https://get.datree.io | /bin/bash -s

# |=========================== Datree Policy Check ===================================|
# | Prevent Kubernetes misconfigurations from reaching production! |
# | Datree is a CLI tool to ensure K8s configs follow stability & security |
# | best practices as well as your organization’s policies. |
# | For more info visit: https://github.com/datreeio/datree |
# |===================================================================================|

- name: Datree validate config files
if: steps.changed-files.outputs.any_changed == 'true'
uses: datreeio/action-datree@main # For more info about this Actions visit πŸ‘‰ https://github.com/datreeio/action-datree
with:
path: ${{ steps.changed-files.outputs.all_changed_files }}
cliArguments: --only-k8s-files
isHelmChart: false
isKustomization: false
32 changes: 32 additions & 0 deletions .github/workflows/depandant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Dependabot Updates

on:
push:
branches:
- '*'

jobs:
dependabot:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Run Dependabot
run: |
curl https://api.github.com/repos/$GITHUB_REPOSITORY -o repo.json
curl -X POST https://api.github.com/repos/$GITHUB_REPOSITORY/dispatches \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-d '{"event_type": "dependabot"}'
15 changes: 15 additions & 0 deletions .github/workflows/lines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ jobs:
echo "::set-output name=yaml_lines::$yaml_lines"
echo "::set-output name=yaml_files::$yaml_files"

- name: Count XML lines
id: count_xml_lines
run: |
xml_lines=$(find . -name '*.xml' | xargs cat | wc -l)
xml_files=$(find . -name '*.xml' | wc -l)
echo "::set-output name=xml_lines::$xml_lines"
echo "::set-output name=xml_files::$xml_files"

- name: Display results
run: |
echo "Total lines of Python code: ${{ steps.count_python_lines.outputs.python_lines }}"
Expand All @@ -55,3 +63,10 @@ jobs:
echo "Total lines of MD files: ${{ steps.count_md_lines.outputs.md_files }}"
echo "Total lines of YAML code: ${{ steps.count_yaml_lines.outputs.yaml_lines }}"
echo "Total lines of YAML files: ${{ steps.count_yaml_lines.outputs.yaml_files }}"
echo "Total lines of XML code: ${{ steps.count_xml_lines.outputs.xml_lines }}"
echo "Total lines of XML files: ${{ steps.count_xml_lines.outputs.xml_files }}"

total_files=$((steps.count_python_lines.outputs.python_files + steps.count_txt_lines.outputs.txt_files + steps.count_md_lines.outputs.md_files + steps.count_yaml_lines.outputs.yaml_files + steps.count_xml_lines.outputs.xml_files))
total_lines=$((steps.count_python_lines.outputs.python_lines + steps.count_txt_lines.outputs.txt_lines + steps.count_md_lines.outputs.md_lines + steps.count_yaml_lines.outputs.yaml_lines + steps.count_xml_lines.outputs.xml_lines))
echo "Total number of files: $total_files"
echo "Total number of lines: $total_lines"
14 changes: 0 additions & 14 deletions .whitesource

This file was deleted.

1 change: 1 addition & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @mrayanasim09 @drik493
15 changes: 15 additions & 0 deletions CONTRIBUTER.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Contributors

Thank you to the following individuals and bots for their contributions to the "python-projects" repository:

- [mrayanasim09](https://github.com/mrayanasim09)
- [drik493](https://github.com/drik493)
- [imgbot](https://github.com/imgbot)
- [deepsource](https://github.com/deepsource)
- [dependabot](https://github.com/dependabot)
- [snyk-bot](https://github.com/snyk-bot)
- [actions-user](https://github.com/actions-user)
- [mend bolt for github](https://github.com/apps/mend-bolt-for-github)
- [datreeio](https://github.com/apps/datreeio)

Your contributions help make this project better! :rocket:
17 changes: 17 additions & 0 deletions Calculator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import time
import ASCII
import Mortgage
import Quadratic_Equation
import bmi
import conject
import grade
import graph
import int_diff
import mega_calculator
import number_base
import roman_number
import sequence
import special_relativity_calculator
import stock
import sudoku
import time_calculator
Comment on lines +1 to +17
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary:
The code change consists of importing 17 different modules. These modules seem to be related to various mathematical and scientific computations, as well as some utility functions like time calculation and ASCII manipulation.

Specific Feedback:

  1. Line 1: The 'time' module is a standard Python library used for handling time-related tasks. It's a common and useful import.
  2. Line 2: The 'ASCII' module is not a standard Python library. If it's a custom module, ensure it's properly maintained and documented.
  3. Lines 3-17: These appear to be custom modules. As with the 'ASCII' module, ensure they are well-maintained and documented.

Suggestions for Improvement:

  1. Organize imports: Python's PEP 8 style guide recommends organizing imports in the following order: standard library imports, related third party imports, and local application/library specific imports. You should also separate these sections by a blank line. This makes it easier to see at a glance where each module is coming from.
  2. Avoid unnecessary imports: Importing many modules can slow down the startup time of a script, especially if the modules are large. If you're only using a few functions from a module, consider importing only those functions instead of the entire module.
  3. Comment your imports: Especially for less common modules, it can be helpful to include a comment explaining what the module is used for. This can make your code easier to understand for others, or for yourself if you come back to it after a long time.
  4. Check for duplicate imports: You have imported the 'time' module twice. This is unnecessary and can be confusing. Remove the duplicate import.

File renamed without changes.
Loading