-
Notifications
You must be signed in to change notification settings - Fork 5
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 #15 from mundialis/linting
Linting
- Loading branch information
Showing
19 changed files
with
2,957 additions
and
2,065 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,28 @@ | ||
name: Python code quality check | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ main ] | ||
|
||
jobs: | ||
|
||
flake8-actinia: | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Install | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8==3.8.0 | ||
- name: Run Flake8 | ||
run: | | ||
flake8 --config=.flake8 --count --statistics --show-source --jobs=$(nproc) . |
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 |
---|---|---|
|
@@ -12,26 +12,26 @@ | |
from actinia_core.core.common.process_queue import create_process_queue | ||
|
||
__license__ = "GPLv3" | ||
__author__ = "Sören Gebbert" | ||
__copyright__ = "Copyright 2016, Sören Gebbert" | ||
__author__ = "Sören Gebbert" | ||
__copyright__ = "Copyright 2016, Sören Gebbert" | ||
__maintainer__ = "Sören Gebbert" | ||
__email__ = "[email protected]" | ||
__email__ = "[email protected]" | ||
|
||
if os.path.exists(DEFAULT_CONFIG_PATH) is True and os.path.isfile(DEFAULT_CONFIG_PATH): | ||
if os.path.exists(DEFAULT_CONFIG_PATH) is True and os.path.isfile( | ||
DEFAULT_CONFIG_PATH | ||
): | ||
global_config.read(DEFAULT_CONFIG_PATH) | ||
|
||
# Create the endpoints based on the global config | ||
create_endpoints() | ||
|
||
# Connect the redis interfaces | ||
connect(global_config.REDIS_SERVER_URL, | ||
global_config.REDIS_SERVER_PORT) | ||
connect(global_config.REDIS_SERVER_URL, global_config.REDIS_SERVER_PORT) | ||
|
||
# Create the process queue | ||
create_process_queue(global_config) | ||
|
||
|
||
######################################################################################################################## | ||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
# Connect to the database | ||
flask_app.run(host='0.0.0.0', port=8080, debug=True) | ||
flask_app.run(host="0.0.0.0", port=8080, debug=True) |
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.