Skip to content

Commit

Permalink
Some cosmetic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Aug 29, 2023
1 parent 6245d68 commit 27e6ef5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
29 changes: 26 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ __pycache__/
*.so

# Distribution / packaging
.idea
.Python
.idea
build/
develop-eggs/
dist/
Expand All @@ -21,6 +21,8 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
Expand All @@ -39,12 +41,14 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

Expand All @@ -56,6 +60,7 @@ coverage.xml
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
Expand All @@ -73,11 +78,26 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py
Expand All @@ -103,5 +123,8 @@ venv.bak/

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

docker-compose.yaml
# Pyre type checker
.pyre/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}" PYTHONPATH=/backend \

# Start uWSGI
CMD ["/venv/bin/uwsgi", "--http-auto-chunked", "--http-keepalive"]
HEALTHCHECK --interval=1m --timeout=5s --retries=2 CMD ["curl","-s", "-f", "--show-error","http://localhost:5001/"]
HEALTHCHECK --interval=1m --timeout=5s --retries=2 CMD ["curl", "-s", "-f", "--show-error", "http://localhost:5001/"]
6 changes: 3 additions & 3 deletions app/utils/text_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,8 @@ def extract_message_params(text):
return all_params


def build_url(main_url, url_params):
"""Build url by concating url and url_params"""
def build_url(main_url: str, url_params: list) -> str:
"""Build url by concatenating url and url_params"""
return main_url + "/" + "/".join(url_params)


Expand Down Expand Up @@ -640,7 +640,7 @@ def transform_string_feature_range_into_list(text):
return values


def unite_project_name(project_id, prefix):
def unite_project_name(project_id: str, prefix: str) -> str:
return prefix + project_id


Expand Down

0 comments on commit 27e6ef5

Please sign in to comment.