-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from sigmadawg/add-pylint
re-worked on #Add pylint workflow and fix all issues"
- Loading branch information
Showing
117 changed files
with
1,625 additions
and
1,394 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,48 @@ | ||
name: Pylint Check | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
- name: Debug Information | ||
run: | | ||
echo "Current directory:" | ||
pwd | ||
echo "\nDirectory structure:" | ||
ls -R | ||
echo "\nGit root directory:" | ||
git rev-parse --show-toplevel | ||
echo "\nSearching for Python files:" | ||
find . -name "*.py" | ||
echo "\nGit ls-files output:" | ||
git ls-files | ||
echo "\nSpecific path search:" | ||
git ls-files 'data_handler/*.py' | ||
git ls-files './data_handler/*.py' | ||
git ls-files 'apps/data_handler/*.py' | ||
git ls-files './apps/data_handler/*.py' | ||
- name: Run Pylint | ||
run: | | ||
PYTHON_FILES=$(find ./apps/data_handler -name "*.py") | ||
if [ -n "$PYTHON_FILES" ]; then | ||
echo "Files to lint: $PYTHON_FILES" | ||
python -m pylint $PYTHON_FILES --disable=all --enable=C0114,C0115,C0116,C0301 --max-line-length=150 | ||
else | ||
echo "No Python files found in apps/data_handler/" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
"""Module docstring placeholder.""" | ||
|
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,7 @@ | ||
""" | ||
This module initializes the Celery application for the data handler. | ||
It sets up the necessary configurations and integrates with the broader | ||
application to manage asynchronous tasks efficiently. | ||
""" | ||
|
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
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 |
---|---|---|
@@ -1 +1,9 @@ | ||
""" | ||
This module initializes the database connection and imports necessary components. | ||
It imports: | ||
- `SQLALCHEMY_DATABASE_URL`: The URL for the SQLAlchemy database connection. | ||
- `Base`: The declarative base class for SQLAlchemy models. | ||
""" | ||
|
||
from data_handler.db.database import SQLALCHEMY_DATABASE_URL, Base |
Oops, something went wrong.