Skip to content

Commit

Permalink
feat: Refactor project structure by renaming package, adding new apps…
Browse files Browse the repository at this point in the history
…, and removing deprecated files
  • Loading branch information
AhmedNassar7 committed Feb 19, 2025
1 parent 9444e28 commit e014057
Show file tree
Hide file tree
Showing 46 changed files with 3,171 additions and 116 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Set default behavior to automatically normalize line endings
* text=auto

# Python files
*.py text diff=python eol=lf
*.pyw text diff=python eol=lf

# Web files
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.json text eol=lf

# Config files
*.yml text eol=lf
*.yaml text eol=lf
*.toml text eol=lf
*.ini text eol=lf
*.cfg text eol=lf
.gitattributes text eol=lf
.gitignore text eol=lf
.pre-commit-config.yaml text eol=lf
43 changes: 43 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: |
(?x)^(
.*\.(md|rst)$|
migrations/.*\.py|
.*\.(css|js|html)$
)$
- id: end-of-file-fixer
exclude: |
(?x)^(
migrations/.*\.py|
.*\.(css|js|html)$
)$
- id: mixed-line-ending
args: [--fix=lf]
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args: [--max-line-length=120, --extend-ignore=E203,W503,E501]
exclude: migrations/

- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
args: [--line-length=120]
exclude: migrations/

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile=black, --line-length=120]
exclude: migrations/
2 changes: 1 addition & 1 deletion apps/stations/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from django.db.models import Count
import markupsafe

from egypt_metro import settings
from metro import settings
from .models import Line, Station, LineStation
from apps.stations.management.commands.populate_metro_data import Command as MetroDataCommand

Expand Down
Loading

0 comments on commit e014057

Please sign in to comment.