Skip to content

Commit

Permalink
feat: implement django-presigned-url
Browse files Browse the repository at this point in the history
  • Loading branch information
Yelinz committed Jul 18, 2024
1 parent 881420a commit 2455a8c
Show file tree
Hide file tree
Showing 10 changed files with 501 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: friday
time: "00:00"
open-pull-requests-limit: 10
Empty file added .github/workflows/pypi.yml
Empty file.
Empty file added .github/workflows/tests.yml
Empty file.
75 changes: 75 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
.pytest_cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython Notebook
.ipynb_checkpoints

# Pyenv
.python-version

# Editor swap files
*.swp

# Cookiecutter test project
ci_project

# ruff
.ruff_cache/
16 changes: 16 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Contributing

Contributions to django-presigned-url are very welcome! Best have a look at the open [issues](https://github.com/adfinis/django-presigned-url)
and open a [GitHub pull request](https://github.com/adfinis/django-presigned-url/compare). See instructions below how to setup development
environment. Before writing any code, best discuss your proposed change in a GitHub issue to see if the proposed change makes sense for the project.

## Setup development environment

### Clone

To work on django-presigned-url you first need to clone

```bash
git clone https://github.com/adfinis/django-presigned-url.git
cd django-presigned-url
```
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.DEFAULT_GOAL := help

.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -k 1,1 | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

.PHONY: lint
lint: ## lint the code
@poetry run ruff check .
@poetry run ruff format --check .
@poetry run mypy .

.PHONY: format
format: ## format the code
@poetry run ruff check . --fix
@poetry run ruff format .
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# django-presigned-url

Generate presigned urls for django.

227 changes: 227 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2455a8c

Please sign in to comment.