Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# EditorConfig is awesome: https://editorconfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
2 changes: 1 addition & 1 deletion .github-language-analysis.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Github dil analizi için oluşturumluştur.
# Github dil analizi için oluşturulmuştur.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
---
version: 2
updates:
- package-ecosystem: "pip"
target-branch: dev
directory: "/"
schedule:
interval: monthly
- package-ecosystem: "github-actions"
target-branch: dev
directory: "/"
schedule:
interval: monthly
25 changes: 25 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Build Docs
on:
workflow_dispatch: # Allows manual triggering of the workflow
push:
branches: ["main"] # Triggers on pushes to the main branch
pull_request:
branches: ["main"] # Triggers on pull requests targeting the main branch
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Step 1: Check out the repository
# Description: Checks out the repository so that the workflow can access its contents.
- name: Checkout repository
uses: actions/checkout@v4
# Step 2: Install mise using the specified action
# Description: Installs mise, along with the tools defined in the mise.toml file.
- name: Install mise
uses: jdx/mise-action@v2
# Step 3: Build the documentation
# Description: Runs the style:lint, style:format, and docs:build commands using mise.
- name: Build docs
run: mise run docs:build
29 changes: 29 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: Deploy Docs
on:
workflow_dispatch: # Allows manual triggering of the workflow
release:
types: [published] # Trigger on release publication
concurrency:
group: ${{ github.workflow }}-${{ github.ref }} # Grouping by workflow name and reference
cancel-in-progress: true # Cancel any in-progress runs for the same group
permissions:
contents: write # Required for pushing changes to the repository
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
# Step 1: Check out the repository
# Description: Checks out the repository so that the workflow can access its contents.
- name: Checkout repository
uses: actions/checkout@v4
# Step 2: Install mise using the specified action
# Description: Installs mise, a tool for building and deploying documentation, along
# with the tools defined in the mise.toml file.
- name: Install mise
uses: jdx/mise-action@v2
# Step 3: Build and deploy the documentation
# Description: Builds the documentation using mkdocs and pushes it to the gh-pages branch.
- name: Build and deploy docs
run: mkdocs gh-deploy --force
15 changes: 15 additions & 0 deletions .github/workflows/enforcer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: "Check Branch"
on:
pull_request:
branches: ['main'] # Trigger on pull requests to the 'main' branch
jobs:
check_branch:
runs-on: ubuntu-latest
steps:
- name: Check if branch is valid
# Use a conditional to ensure the base branch is 'main' and the head branch is not 'dev'
if: ${{ github.base_ref == 'main' && github.head_ref != 'dev' }}
run: |
echo "ERROR: You can only merge to 'main' from 'dev'."
exit 1
42 changes: 0 additions & 42 deletions .github/workflows/gh-pages.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Inspired by [fastapi/.github/workflows/people.yml at master · tiangolo/fastapi](https://github.com/tiangolo/fastapi/blob/master/.github/workflows/people.yml)
---
# [Based on](https://github.com/tiangolo/fastapi/blob/master/.github/workflows/people.yml)
name: FastAPI Pages

on:
schedule:
- cron: "0 0 1 1 *" # Update it as "0 1 * * *" to run it every day at 01:00 UTC

jobs:
fastapi-pages:
if: github.repository_owner == 'hasansezertasan'
Expand Down
116 changes: 110 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
### Generated by gibo (https://github.com/simonwhitaker/gibo)
### https://raw.github.com/github/gitignore/297239c101dcfdfae7e75757ed17ed993df0b4eb/Global/macOS.gitignore

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Generated by gibo (https://github.com/simonwhitaker/gibo)
### https://raw.github.com/github/gitignore/297239c101dcfdfae7e75757ed17ed993df0b4eb/Global/Windows.gitignore

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk
### Generated by gibo (https://github.com/simonwhitaker/gibo)
### https://raw.github.com/github/gitignore/297239c101dcfdfae7e75757ed17ed993df0b4eb/Python.gitignore

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down Expand Up @@ -94,20 +154,28 @@ ipython_config.py
# install all needed dependencies.
#Pipfile.lock

# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
#uv.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
poetry.lock
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
Expand Down Expand Up @@ -159,8 +227,44 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# Visual Studio Code related
.vscode
# Ruff stuff:
.ruff_cache/

# Generated by MacOS
.DS_Store
# PyPI configuration file
.pypirc
### Generated by gibo (https://github.com/simonwhitaker/gibo)
### https://raw.github.com/github/gitignore/297239c101dcfdfae7e75757ed17ed993df0b4eb/GitHubPages.gitignore

# This .gitignore is appropriate for repositories deployed to GitHub Pages and using
# a Gemfile as specified at https://github.com/github/pages-gem#conventional

# Basic Jekyll gitignores (synchronize to Jekyll.gitignore)
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata

# Additional Ruby/bundler ignore for when you run: bundle install
/vendor

# Specific ignore for GitHub Pages
# GitHub Pages will always use its own deployed version of pages-gem
# This means GitHub Pages will NOT use your Gemfile.lock and therefore it is
# counterproductive to check this file into the repository.
# Details at https://github.com/github/pages-gem/issues/768
Gemfile.lock
### Generated by gibo (https://github.com/simonwhitaker/gibo)
### https://raw.github.com/github/gitignore/297239c101dcfdfae7e75757ed17ed993df0b4eb/Global/VisualStudioCode.gitignore

.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix
12 changes: 12 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"config": {
"default": true,
"MD013": false
},
"fix": true,
"globs": [
"**/*.md",
"**/*.markdown"
],
"gitignore": true
}
57 changes: 45 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,55 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
repos:
# https://github.com/pre-commit/pre-commit-hooks#pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-added-large-files
name: Check added large files
args:
- --maxkb=1000
- id: check-toml
name: Check TOML
- id: check-yaml
name: Check YAML
args:
- --unsafe
- id: check-json
name: Check JSON
- id: end-of-file-fixer
name: End of file fixer
- id: trailing-whitespace
- id: check-added-large-files
name: Trailing whitespace
- id: debug-statements
name: Debug Statements
- id: check-merge-conflict
name: Check merge conflict
- id: detect-private-key
# - repo: https://github.com/jackdewinter/pymarkdown
# rev: 0.9.16
# hooks:
# - id: pymarkdown
# pass_filenames: false
# args:
# - --config=pyproject.toml
# - scan
# - .
# - ./docs
name: Detect private key
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.0
hooks:
- id: yamllint
name: YAML Linter
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint
name: Actionlint Linter
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.17.2
hooks:
- id: markdownlint-cli2
name: Markdown Linter
- repo: https://github.com/crate-ci/typos
rev: v1.30.2
hooks:
- id: typos
name: Typos Linter
- repo: https://github.com/google/yamlfmt
rev: v0.16.0
hooks:
- id: yamlfmt
name: YAML Formatter
5 changes: 5 additions & 0 deletions .yamlfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
formatter:
type: basic
include_document_start: true
pad_line_comments: 2
8 changes: 8 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
extends: default
rules:
line-length:
max: 120
level: warning
truthy:
check-keys: false
3 changes: 3 additions & 0 deletions _typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default.extend-words]
metod = "metod"
bu = "bu"
Loading