Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
88 changes: 44 additions & 44 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: Python Lint Check

on:
pull_request:
paths:
- '**.py' # only trigger on python files
jobs:
lint-changed-files:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Required to fetch the base branch for comparison
fetch-depth: 0

- name: Get changed Python files
id: changed-files-py
uses: tj-actions/changed-files@v46 # This action finds changed files
with:
files: |
**.py

- name: Set up Python
if: steps.changed-files-py.outputs.any_changed == 'true'
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Pylint
if: steps.changed-files-py.outputs.any_changed == 'true'
run: python -m pip install pylint

- name: Install dependencies
if: steps.changed-files-py.outputs.any_changed == 'true'
run: python -m pip install -r requirements.txt

- name: Run on changed files
if: steps.changed-files-py.outputs.any_changed == 'true'
run: |
echo "Linting the following files:"
echo "${{ steps.changed-files-py.outputs.all_changed_files }}"

PYTHONPATH=. pylint ${{ steps.changed-files-py.outputs.all_changed_files }} --disable=C,R
name: Python Lint Check
on:
pull_request:
paths:
- '**.py' # only trigger on python files
jobs:
lint-changed-files:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Required to fetch the base branch for comparison
fetch-depth: 0
- name: Get changed Python files
id: changed-files-py
uses: tj-actions/changed-files@v46 # This action finds changed files
with:
files: |
**.py
- name: Set up Python
if: steps.changed-files-py.outputs.any_changed == 'true'
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Pylint
if: steps.changed-files-py.outputs.any_changed == 'true'
run: python -m pip install pylint
- name: Install dependencies
if: steps.changed-files-py.outputs.any_changed == 'true'
run: python -m pip install -r requirements.txt
- name: Run on changed files
if: steps.changed-files-py.outputs.any_changed == 'true'
run: |
echo "Linting the following files:"
echo "${{ steps.changed-files-py.outputs.all_changed_files }}"
PYTHONPATH=. pylint ${{ steps.changed-files-py.outputs.all_changed_files }} --disable=C,R
102 changes: 51 additions & 51 deletions .github/workflows/update_module_info.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
name: Update Module Info

on:
push:
branches:
- main
paths:
- 'scripts/artifacts/**'
workflow_dispatch:

permissions:
contents: write

jobs:
update-module-info:
# Only run on the main repository, not on forks
if: startsWith(github.repository, 'abrignoni/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Run documentation scripts
run: |
python admin/scripts/device_info_values.py
python admin/scripts/module_info.py
python admin/scripts/modules_parsing_sqlite_db.py

- name: Check for changes
id: git-check
run: |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT

- name: Commit changes
if: steps.git-check.outputs.changes == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add admin/
git commit -m "Update documentation files"

- name: Push changes
if: steps.git-check.outputs.changes == 'true'
run: |
git push
name: Update Module Info
on:
push:
branches:
- main
paths:
- 'scripts/artifacts/**'
workflow_dispatch:
permissions:
contents: write
jobs:
update-module-info:
# Only run on the main repository, not on forks
if: startsWith(github.repository, 'abrignoni/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Run documentation scripts
run: |
python admin/scripts/device_info_values.py
python admin/scripts/module_info.py
python admin/scripts/modules_parsing_sqlite_db.py
- name: Check for changes
id: git-check
run: |
git diff --exit-code || echo "changes=true" >> $GITHUB_OUTPUT
- name: Commit changes
if: steps.git-check.outputs.changes == 'true'
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add admin/
git commit -m "Update documentation files"
- name: Push changes
if: steps.git-check.outputs.changes == 'true'
run: |
git push
202 changes: 101 additions & 101 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,101 +1,101 @@
# Compiled files
__pycache__/
*.py[cod]
*$py.class
*.so

# Distribution / packaging
.Python
build/
dist/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# Installers
*.cab
*.msi
*.msix
*.msm
*.msp

# Logs
*.log
pip-log.txt
pytestdebug.log

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Testing
.coverage
.coverage.*
*.cover
*.py,cover
htmlcov/
.tox/
.nox/
.cache
nosetests.xml
coverage.xml
.hypothesis/
.pytest_cache/

# IDEs
.vscode/
.idea/
.spyderproject
.spyproject
.ropeproject

# OS
*.DS_Store
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
[Dd]esktop.ini
$RECYCLE.BIN/

# Project specific
?LEAPP_Reports_*
path_list.txt
coordinates.db

# Documentation
docs/_build/
/site
target/

# Misc
*.sage.py
celerybeat-schedule
__pypackages__/
.mypy_cache/
.pyre/
.pytype/

# Version control
.history

# Other tools
*.pot
*.mo
*.manifest
pip-wheel-metadata/
share/python-wheels/
wheels/
local_settings.py
instance/
.webassets-cache
.scrapy
.ipynb_checkpoints
.python-version

# Compiled files
__pycache__/
*.py[cod]
*$py.class
*.so
# Distribution / packaging
.Python
build/
dist/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# Installers
*.cab
*.msi
*.msix
*.msm
*.msp
# Logs
*.log
pip-log.txt
pytestdebug.log
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Testing
.coverage
.coverage.*
*.cover
*.py,cover
htmlcov/
.tox/
.nox/
.cache
nosetests.xml
coverage.xml
.hypothesis/
.pytest_cache/
# IDEs
.vscode/
.idea/
.spyderproject
.spyproject
.ropeproject
# OS
*.DS_Store
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
[Dd]esktop.ini
$RECYCLE.BIN/
# Project specific
?LEAPP_Reports_*
path_list.txt
coordinates.db
# Documentation
docs/_build/
/site
target/
# Misc
*.sage.py
celerybeat-schedule
__pypackages__/
.mypy_cache/
.pyre/
.pytype/
# Version control
.history
# Other tools
*.pot
*.mo
*.manifest
pip-wheel-metadata/
share/python-wheels/
wheels/
local_settings.py
instance/
.webassets-cache
.scrapy
.ipynb_checkpoints
.python-version
Loading