Closed zacharyDez closed 1 month ago
space2stats_api/app/settings.py
cd space2stats_api python -m pytest uvicorn app.main:app --reload
pre-commit run --all-files
current_directory = os.getcwd() env_file_name = 'local_db.env'
if os.path.basename(current_directory) == "space2stats_api": env_path = os.path.join(current_directory, '..', env_file_name) else: env_path = os.path.join(current_directory, env_file_name)
- Closes #22
we can also add a step in the CI to run the pre-commit https://github.com/cogeotiff/rio-tiler/blob/8573dbe7b3ea7325e7db084f29bc47f9797d0bbe/.github/workflows/ci.yml#L38-L42
What I Changed
space2stats_api/app/settings.py
How to test it
Other Notes
if os.path.basename(current_directory) == "space2stats_api": env_path = os.path.join(current_directory, '..', env_file_name) else: env_path = os.path.join(current_directory, env_file_name)