-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update project structure and settings; add runtime file, flake8…
… configuration, and custom error handling views
- Loading branch information
1 parent
a25c5b8
commit 29d4ecf
Showing
42 changed files
with
1,627 additions
and
510 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
ignore = E203, E266, E501, W503 | ||
exclude = .git,__pycache__,docs/source/conf.py,old,build,dista |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# .pre-commit-config.yaml | ||
|
||
# Repositories that contain hooks | ||
repos: | ||
# Black: Code formatter for Python | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
args: ['--line-length=88'] # Customize the line length here if needed | ||
|
||
# Flake8: Linter for Python | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- --max-line-length=88 # Customize the max line length if needed | ||
# additional_dependencies: | ||
# - flake8-bugbear # Optional: Adds additional linting checks | ||
# - flake8-docstrings # Optional: Adds docstring linting checks | ||
|
||
# Isort: Sorts imports alphabetically and automatically separates them into sections | ||
# - repo: https://github.com/pre-commit/mirrors-isort | ||
# rev: v5.12.0 # Use the latest valid version | ||
# hooks: | ||
# - id: isort | ||
# args: ['--profile=black'] # Align with Black's formatting style | ||
# additional_dependencies: | ||
# - isort[app] # Optional: Install extra dependencies for app-specific sorting | ||
|
||
# Pydocstyle: Checks compliance with Python docstring conventions | ||
# - repo: https://github.com/PyCQA/pydocstyle | ||
# rev: 6.1.1 | ||
# hooks: | ||
# - id: pydocstyle | ||
# args: | ||
# - --convention=google # Use the Google style for docstrings (customize as needed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.