Skip to content

Commit

Permalink
only install flake8 for lint, added COPYING file, added logger to Ser…
Browse files Browse the repository at this point in the history
…vice, URLs in README changed, Core Engine URL changed
  • Loading branch information
andrptrc committed Dec 14, 2023
1 parent 2675647 commit 3a21f70
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 31 deletions.
3 changes: 3 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
exclude = .git,__pycache__,venv,.venv
max-line-length = 120
2 changes: 1 addition & 1 deletion .github/actions/lint-python-app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
- name: Install app dependencies
shell: bash
working-directory: ${{ inputs.python-app-path }}
run: pip3 install -r requirements.txt -r requirements-all.txt
run: pip3 install flake8

- name: Lint Python code
shell: bash
Expand Down
22 changes: 2 additions & 20 deletions .github/workflows/image-analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@ on:
branches:
- main
- prod
paths:
- .github/actions/build-and-push-docker-image-to-github/action.yml
- .github/actions/execute-command-on-kubernetes-cluster/action.yml
- .github/actions/lint-python-app/action.yml
- .github/actions/test-python-app/action.yml
- .github/workflows/image-analyzer.yml
- common-code/**/*
- services/image-analyzer/**/*

pull_request:
paths:
- .github/actions/build-and-push-docker-image-to-github/action.yml
- .github/actions/execute-command-on-kubernetes-cluster/action.yml
- .github/actions/lint-python-app/action.yml
- .github/actions/test-python-app/action.yml
- .github/workflows/image-analyzer.yml
- common-code/**/*
- services/image-analyzer/**/*

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -94,7 +76,7 @@ jobs:
env:
ENVIRONMENT: production
LOG_LEVEL: info
ENGINE_URLS: "'[\"https://core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
ENGINE_URLS: "'[\"https://backend-core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
SERVICE_URL: https://image-analyzer-swiss-ai-center.kube.isc.heia-fr.ch
run: |
# Set image-analyzer version
Expand Down Expand Up @@ -137,7 +119,7 @@ jobs:
env:
ENVIRONMENT: production
LOG_LEVEL: info
ENGINE_URLS: "'[\"https://core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
ENGINE_URLS: "'[\"https://backend-core-engine-swiss-ai-center.kube.isc.heia-fr.ch\"]'"
SERVICE_URL: https://image-analyzer-swiss-ai-center.kube.isc.heia-fr.ch
run: |
# Set image-analyzer version
Expand Down
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
## Material for MkDocs

# Cache
.cache

# Output directory
/public

## Python

# Environments
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# image-analyzer

_Check the [related documentation](https://swiss-ai-center.github.io/swiss-ai-center/reference/image-analyzer) for more information._
_Check the [related documentation](https://docs.swiss-ai-center.ch/reference/services/image-analyzer) for more information._
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiofile==3.8.7
common-code[test] @ git+https://github.com/swiss-ai-center/core-engine.git@main#subdirectory=common-code
common-code[test] @ git+https://github.com/swiss-ai-center/common-code.git@main
flake8==5.0.4
Pillow==9.1.0
pytest==7.2.0
Expand Down

0 comments on commit 3a21f70

Please sign in to comment.