Skip to content

Commit 86840cc

Browse files
committed
Rewrite the whole repo
1 parent 179a4d9 commit 86840cc

26 files changed

+732
-567
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Docs: https://circleci.com/docs/2.0/language-python/
2+
version: 2
3+
jobs:
4+
build:
5+
docker:
6+
- image: kiwicom/tox:3.7
7+
8+
working_directory: ~/repo
9+
10+
steps:
11+
- checkout
12+
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-{{ checksum "requirements.txt" }}
16+
- v1-dependencies-
17+
18+
- run:
19+
name: Install Alpine dependencies
20+
command: apk add --no-cache curl findutils git
21+
22+
- run:
23+
name: Install Python dependencies
24+
command: pip install coverage
25+
26+
- run:
27+
name: Create tox environments
28+
command: tox --notest
29+
30+
- save_cache:
31+
paths:
32+
- ./.tox
33+
key: v1-dependencies-{{ checksum "requirements.txt" }}
34+
35+
- run:
36+
name: Run tests with tox
37+
command: tox
38+
39+
- run:
40+
name: Report coverage to codecov
41+
command: bash <(curl -s https://codecov.io/bash)

.coafile

Lines changed: 0 additions & 50 deletions
This file was deleted.

.coveragerc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[run]
2+
branch = True
3+
source =
4+
flask_redis
5+
6+
[paths]
7+
source =
8+
flask_redis
9+
.tox/*/lib/python*/site-packages/flask_redis
10+
11+
[report]
12+
show_missing = True

.gitignore

Lines changed: 116 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,72 @@
11
#### joe made this: http://goel.io/joe
22

3-
#####=== Python ===#####
3+
#####=== Linux ===#####
4+
*~
45

5-
# Byte-compiled / optimized / DLL files
6-
__pycache__/
7-
*.py[cod]
8-
*$py.class
6+
# KDE directory preferences
7+
.directory
98

10-
# C extensions
11-
*.so
9+
# Linux trash folder which might appear on any partition or disk
10+
.Trash-*
1211

13-
# Distribution / packaging
14-
.Python
15-
env/
16-
build/
17-
develop-eggs/
18-
dist/
19-
downloads/
20-
eggs/
21-
.eggs/
22-
lib/
23-
lib64/
24-
parts/
25-
sdist/
26-
var/
27-
*.egg-info/
28-
.installed.cfg
29-
*.egg
12+
#####=== OSX ===#####
13+
.DS_Store
14+
.AppleDouble
15+
.LSOverride
3016

31-
# PyInstaller
32-
# Usually these files are written by a python script from a template
33-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
34-
*.manifest
35-
*.spec
17+
# Icon must end with two \r
18+
Icon
3619

37-
# Installer logs
38-
pip-log.txt
39-
pip-delete-this-directory.txt
4020

41-
# Unit test / coverage reports
42-
htmlcov/
43-
.tox/
44-
.coverage
45-
.coverage.*
46-
.cache
47-
nosetests.xml
48-
coverage.xml
49-
*,cover
21+
# Thumbnails
22+
._*
5023

51-
# Translations
52-
*.mo
53-
*.pot
24+
# Files that might appear in the root of a volume
25+
.DocumentRevisions-V100
26+
.fseventsd
27+
.Spotlight-V100
28+
.TemporaryItems
29+
.Trashes
30+
.VolumeIcon.icns
5431

55-
# Django stuff:
56-
*.log
32+
# Directories potentially created on remote AFP share
33+
.AppleDB
34+
.AppleDesktop
35+
Network Trash Folder
36+
Temporary Items
37+
.apdisk
5738

58-
# Sphinx documentation
59-
docs/_build/
39+
#####=== Windows ===#####
40+
# Windows image file caches
41+
Thumbs.db
42+
ehthumbs.db
6043

61-
# PyBuilder
62-
target/
44+
# Folder config file
45+
Desktop.ini
46+
47+
# Recycle Bin used on file shares
48+
$RECYCLE.BIN/
49+
50+
# Windows Installer files
51+
*.cab
52+
*.msi
53+
*.msm
54+
*.msp
55+
56+
# Windows shortcuts
57+
*.lnk
58+
59+
#####=== VisualStudioCode ===#####
60+
.settings
61+
62+
63+
#####=== Vim ===#####
64+
[._]*.s[a-w][a-z]
65+
[._]s[a-w][a-z]
66+
*.un~
67+
Session.vim
68+
.netrwhist
69+
*~
6370

6471
#####=== JetBrains ===#####
6572
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
@@ -109,48 +116,70 @@ com_crashlytics_export_strings.xml
109116
crashlytics.properties
110117
crashlytics-build.properties
111118

112-
#####=== Vim ===#####
113-
[._]*.s[a-w][a-z]
114-
[._]s[a-w][a-z]
115-
*.un~
116-
Session.vim
117-
.netrwhist
118-
*~
119+
#####=== Python ===#####
119120

120-
#####=== VirtualEnv ===#####
121-
# Virtualenv
122-
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
121+
# Byte-compiled / optimized / DLL files
122+
__pycache__/
123+
*.py[cod]
124+
*$py.class
125+
126+
# C extensions
127+
*.so
128+
129+
# Distribution / packaging
123130
.Python
124-
[Bb]in
125-
[Ii]nclude
126-
[Ll]ib
127-
[Ss]cripts
128-
pyvenv.cfg
129-
pip-selfcheck.json
131+
env/
132+
build/
133+
develop-eggs/
134+
dist/
135+
downloads/
136+
eggs/
137+
.eggs/
138+
lib/
139+
lib64/
140+
parts/
141+
sdist/
142+
var/
143+
*.egg-info/
144+
.installed.cfg
145+
*.egg
130146

131-
#####=== OSX ===#####
132-
.DS_Store
133-
.AppleDouble
134-
.LSOverride
147+
# PyInstaller
148+
# Usually these files are written by a python script from a template
149+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
150+
*.manifest
151+
*.spec
135152

136-
# Icon must end with two \r
137-
Icon
153+
# Installer logs
154+
pip-log.txt
155+
pip-delete-this-directory.txt
138156

139-
# Thumbnails
140-
._*
157+
# Unit test / coverage reports
158+
htmlcov/
159+
.tox/
160+
.coverage
161+
.coverage.*
162+
.cache
163+
nosetests.xml
164+
coverage.xml
165+
*,cover
141166

142-
# Files that might appear in the root of a volume
143-
.DocumentRevisions-V100
144-
.fseventsd
145-
.Spotlight-V100
146-
.TemporaryItems
147-
.Trashes
148-
.VolumeIcon.icns
167+
# Translations
168+
*.mo
169+
*.pot
149170

150-
# Directories potentially created on remote AFP share
151-
.AppleDB
152-
.AppleDesktop
153-
Network Trash Folder
154-
Temporary Items
155-
.apdisk
171+
# Django stuff:
172+
*.log
173+
174+
# Sphinx documentation
175+
docs/_build/
156176

177+
# PyBuilder
178+
target/
179+
180+
#####=== Custom ===#####
181+
182+
.env
183+
env
184+
.cache
185+
.mypy_cache

.isort.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
known_third_party = flask,pytest,setuptools

.landscape.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
repos:
2+
- repo: https://github.com/ambv/black
3+
rev: 19.3b0
4+
hooks:
5+
- id: black
6+
language_version: python3.7
7+
8+
- repo: https://gitlab.com/pycqa/flake8
9+
rev: 3.7.7
10+
hooks:
11+
- id: flake8
12+
language_version: python3.7
13+
14+
- repo: https://github.com/asottile/seed-isort-config
15+
rev: v1.7.0
16+
hooks:
17+
- id: seed-isort-config
18+
19+
- repo: https://github.com/pre-commit/mirrors-isort
20+
rev: v4.3.16
21+
hooks:
22+
- id: isort
23+
language_version: python3.7
24+
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v2.1.0
27+
hooks:
28+
- id: trailing-whitespace
29+
- id: end-of-file-fixer
30+
- id: debug-statements

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)