Skip to content

Commit d8fc81a

Browse files
author
Steven Xie
committed
Create reporter and implement basic functionality
1 parent 35a4de9 commit d8fc81a

11 files changed

+500
-1
lines changed

Diff for: .drone.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
kind: pipeline
2+
name: default
3+
4+
steps:
5+
- name: freeze
6+
image: kennethreitz/pipenv
7+
commands:
8+
- pipenv run pip freeze > requirements.txt
9+
10+
- name: info
11+
image: alpine/git
12+
commands:
13+
- git fetch --tags
14+
- git describe --tags 2> /dev/null | cut -c 2- > /info/version
15+
- git rev-parse HEAD 2> /dev/null > /info/commit
16+
- git rev-parse --abbrev-ref HEAD 2> /dev/null > /info/branch
17+
- head -1 < go.mod | awk '{print $2}' 2> /dev/null > /info/module
18+
- tail -n +1 /info/*
19+
volumes:
20+
- name: info
21+
path: /info
22+
23+
- name: build
24+
image: stevenxie/kaniko-drone
25+
settings: &settings
26+
repo: stevenxie/veritaserum
27+
dockerfile: Dockerfile
28+
tags:
29+
- |
30+
$([ $DRONE_BUILD_EVENT != tag ] && \
31+
printf '%s-%s' $(cat /i/branch | tr / -) $(cat /i/commit) || true)
32+
- |
33+
$([ $DRONE_BUILD_EVENT != pull_request ] && \
34+
[ $(cat /i/branch) == master ] && \
35+
echo latest || true)
36+
- |
37+
$([ $DRONE_BUILD_EVENT != pull_request ] && \
38+
([ $DRONE_BUILD_EVENT == tag ] || \
39+
[ $(cat /i/branch) == master ]) && \
40+
cat /i/version || true)
41+
username: stevenxie
42+
password:
43+
from_secret: docker_token
44+
volumes: &volumes
45+
- name: info
46+
path: /i
47+
48+
volumes:
49+
- name: info
50+
temp: {}

Diff for: .editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
6+
# Indent rules:
7+
indent_style = space
8+
indent_size = 2
9+
10+
# Line endings and spacing:
11+
end_of_line = lf
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
[*.py]
16+
indent_size = 4

Diff for: .flake8

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
ignore = E203, E266, E501, W503
3+
max-complexity = 18
4+
select = B,C,E,F,W,T4,B9

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/.vscode/
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]

Diff for: Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM python:3.7-alpine
2+
3+
WORKDIR /app
4+
COPY ./veritaserum/ ./veritaserum/
5+
COPY requirements.txt ./
6+
7+
RUN pip install -r requirements.txt
8+
CMD ["python", "-m", "veritaserum"]

Diff for: Pipfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
black = ">=19"
8+
flake8 = ">=3.7"
9+
10+
[packages]
11+
fbchat = ">=1.9"
12+
flake8 = ">=3.7"
13+
python-dotenv = ">=0.11"
14+
15+
[requires]
16+
python_version = "3.7"

Diff for: Pipfile.lock

+276
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# veritaserum
2-
Recover unsends (deleted messages) in Messenger conversations.
2+
3+
_The truth, and nothing but the truth._
4+
5+
`veritaserum` recover unsends (deleted messages) in Messenger conversations,
6+
and sends the to your Messenger inbox.

Diff for: veritaserum/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)