Skip to content

Commit

Permalink
Initialize python project
Browse files Browse the repository at this point in the history
Set up Poetry, pre-commit hooks, and tools
  • Loading branch information
ethanwu10 committed Apr 7, 2020
1 parent e2bf639 commit 71e7233
Show file tree
Hide file tree
Showing 6 changed files with 592 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.770
hooks:
- id: mypy
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
POETRY ?= poetry
PYTHON ?= $(POETRY) run python

.PHONY: lint
lint: mypy black

.PHONY: test
test:
$(PYTHON) -m pytest

.PHONY: mypy
mypy:
$(POETRY) run mypy .

.PHONY: black
black:
$(POETRY) run black .
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#######
rDeploy
#######

rDeploy is RedpwnCTF's automated challenge management and deployment tool. It is
developed and maintained by the `redpwn <https://redpwn.net>`_ CTF team.
Loading

0 comments on commit 71e7233

Please sign in to comment.