Skip to content

Commit 774fd53

Browse files
authored
Merge pull request #2 from blue-monk/release/1.0.0
Release/1.0.0
2 parents 2932252 + 3fd3338 commit 774fd53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4363
-1
lines changed

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
2+
name: release
3+
4+
on:
5+
release:
6+
types: [released]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: [2.7]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
# It seems that coverage6.0 has been released, and it resolves to 6.0, which causes an error in coverage-badge, so tentatively specifying the coverage version.
29+
# pip install flake8 pytest pytest-cov coverage-badge
30+
pip install flake8 pytest 'coverage>=5.5,<6' pytest-cov coverage-badge
31+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32+
33+
- name: Lint with flake8
34+
run: |
35+
# stop the build if there are Python syntax errors or undefined names
36+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
37+
# exit-zero treats all errors as warnings.
38+
flake8 . --exclude tests --ignore E301,E302,E303,E305,W391 --count --exit-zero --max-complexity=10 --max-line-length=300 --statistics
39+
40+
- name: Test with pytest & Collect coverage
41+
run: |
42+
pytest -v tests --cov=src.csvdiff2 --cov-report=term-missing --cov-report=html
43+
44+
- name: Make coverage badge
45+
run: |
46+
coverage-badge -o ./htmlcov/coverage.svg
47+
48+
- name: Upload coverage-report to GitHub Pages
49+
uses: peaceiris/actions-gh-pages@v3
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
publish_dir: ./htmlcov

.github/workflows/testing.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
name: testing
3+
4+
on:
5+
pull_request:
6+
branches: [main, develop]
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: [2.7]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install flake8 pytest pytest-cov
29+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
31+
- name: Lint with flake8
32+
run: |
33+
# stop the build if there are Python syntax errors or undefined names
34+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35+
# exit-zero treats all errors as warnings.
36+
flake8 . --exclude tests --ignore E301,E302,E303,E305,W391 --count --exit-zero --max-complexity=10 --max-line-length=300 --statistics
37+
38+
- name: Test with pytest
39+
run: |
40+
pytest -v tests --cov=src.csvdiff2 --cov-report=term-missing --cov-report=html

.gitignore

Lines changed: 249 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,249 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/python,venv,pycharm+all
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=python,venv,pycharm+all
4+
5+
### PyCharm+all ###
6+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
7+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
8+
9+
# User-specific stuff
10+
.idea/**/workspace.xml
11+
.idea/**/tasks.xml
12+
.idea/**/usage.statistics.xml
13+
.idea/**/dictionaries
14+
.idea/**/shelf
15+
16+
# AWS User-specific
17+
.idea/**/aws.xml
18+
19+
# Generated files
20+
.idea/**/contentModel.xml
21+
22+
# Sensitive or high-churn files
23+
.idea/**/dataSources/
24+
.idea/**/dataSources.ids
25+
.idea/**/dataSources.local.xml
26+
.idea/**/sqlDataSources.xml
27+
.idea/**/dynamic.xml
28+
.idea/**/uiDesigner.xml
29+
.idea/**/dbnavigator.xml
30+
31+
# Gradle
32+
.idea/**/gradle.xml
33+
.idea/**/libraries
34+
35+
# Gradle and Maven with auto-import
36+
# When using Gradle or Maven with auto-import, you should exclude module files,
37+
# since they will be recreated, and may cause churn. Uncomment if using
38+
# auto-import.
39+
# .idea/artifacts
40+
# .idea/compiler.xml
41+
# .idea/jarRepositories.xml
42+
# .idea/modules.xml
43+
# .idea/*.iml
44+
# .idea/modules
45+
# *.iml
46+
# *.ipr
47+
48+
# CMake
49+
cmake-build-*/
50+
51+
# Mongo Explorer plugin
52+
.idea/**/mongoSettings.xml
53+
54+
# File-based project format
55+
*.iws
56+
57+
# IntelliJ
58+
out/
59+
60+
# mpeltonen/sbt-idea plugin
61+
.idea_modules/
62+
63+
# JIRA plugin
64+
atlassian-ide-plugin.xml
65+
66+
# Cursive Clojure plugin
67+
.idea/replstate.xml
68+
69+
# Crashlytics plugin (for Android Studio and IntelliJ)
70+
com_crashlytics_export_strings.xml
71+
crashlytics.properties
72+
crashlytics-build.properties
73+
fabric.properties
74+
75+
# Editor-based Rest Client
76+
.idea/httpRequests
77+
78+
# Android studio 3.1+ serialized cache file
79+
.idea/caches/build_file_checksums.ser
80+
81+
### PyCharm+all Patch ###
82+
# Ignores the whole .idea folder and all .iml files
83+
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360
84+
85+
.idea/
86+
87+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
88+
89+
*.iml
90+
modules.xml
91+
.idea/misc.xml
92+
*.ipr
93+
94+
# Sonarlint plugin
95+
.idea/sonarlint
96+
97+
### Python ###
98+
# Byte-compiled / optimized / DLL files
99+
__pycache__/
100+
*.py[cod]
101+
*$py.class
102+
103+
# C extensions
104+
*.so
105+
106+
# Distribution / packaging
107+
.Python
108+
build/
109+
develop-eggs/
110+
dist/
111+
downloads/
112+
eggs/
113+
.eggs/
114+
lib/
115+
lib64/
116+
parts/
117+
sdist/
118+
var/
119+
wheels/
120+
share/python-wheels/
121+
*.egg-info/
122+
.installed.cfg
123+
*.egg
124+
MANIFEST
125+
126+
# PyInstaller
127+
# Usually these files are written by a python script from a template
128+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
129+
*.manifest
130+
*.spec
131+
132+
# Installer logs
133+
pip-log.txt
134+
pip-delete-this-directory.txt
135+
136+
# Unit test / coverage reports
137+
htmlcov/
138+
.tox/
139+
.nox/
140+
.coverage
141+
.coverage.*
142+
.cache
143+
nosetests.xml
144+
coverage.xml
145+
*.cover
146+
*.py,cover
147+
.hypothesis/
148+
.pytest_cache/
149+
cover/
150+
151+
# Translations
152+
*.mo
153+
*.pot
154+
155+
# Django stuff:
156+
*.log
157+
local_settings.py
158+
db.sqlite3
159+
db.sqlite3-journal
160+
161+
# Flask stuff:
162+
instance/
163+
.webassets-cache
164+
165+
# Scrapy stuff:
166+
.scrapy
167+
168+
# Sphinx documentation
169+
docs/_build/
170+
171+
# PyBuilder
172+
.pybuilder/
173+
target/
174+
175+
# Jupyter Notebook
176+
.ipynb_checkpoints
177+
178+
# IPython
179+
profile_default/
180+
ipython_config.py
181+
182+
# pyenv
183+
# For a library or package, you might want to ignore these files since the code is
184+
# intended to run in multiple environments; otherwise, check them in:
185+
# .python-version
186+
187+
# pipenv
188+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
189+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
190+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
191+
# install all needed dependencies.
192+
#Pipfile.lock
193+
194+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
195+
__pypackages__/
196+
197+
# Celery stuff
198+
celerybeat-schedule
199+
celerybeat.pid
200+
201+
# SageMath parsed files
202+
*.sage.py
203+
204+
# Environments
205+
.env
206+
.venv
207+
env/
208+
venv/
209+
ENV/
210+
env.bak/
211+
venv.bak/
212+
213+
# Spyder project settings
214+
.spyderproject
215+
.spyproject
216+
217+
# Rope project settings
218+
.ropeproject
219+
220+
# mkdocs documentation
221+
/site
222+
223+
# mypy
224+
.mypy_cache/
225+
.dmypy.json
226+
dmypy.json
227+
228+
# Pyre type checker
229+
.pyre/
230+
231+
# pytype static type analyzer
232+
.pytype/
233+
234+
# Cython debug symbols
235+
cython_debug/
236+
237+
### venv ###
238+
# Virtualenv
239+
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
240+
[Bb]in
241+
[Ii]nclude
242+
[Ll]ib
243+
[Ll]ib64
244+
[Ll]ocal
245+
[Ss]cripts
246+
pyvenv.cfg
247+
pip-selfcheck.json
248+
249+
# End of https://www.toptal.com/developers/gitignore/api/python,venv,pycharm+all

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7.18

0 commit comments

Comments
 (0)