Skip to content

Commit e2032e2

Browse files
Merge pull request #1 from frederikhoengaard/initialise-project
Basics
2 parents d516ca3 + 22ec574 commit e2032e2

File tree

14 files changed

+463
-1
lines changed

14 files changed

+463
-1
lines changed

.github/workflows/verify.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Linting & Testing
2+
3+
on:
4+
pull_request:
5+
6+
env:
7+
PYTHONPATH: ./python/src/main/
8+
9+
jobs:
10+
testing:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Checkout"
14+
uses: actions/checkout@v3
15+
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install pipenv
21+
run: |
22+
pip install pipenv
23+
24+
- name: Install packages
25+
run: |
26+
pipenv sync --dev
27+
28+
- name: Create test report directory
29+
run: |
30+
mkdir test-report
31+
32+
- name: Docker Compose Setup
33+
uses: ndeloof/install-compose-action@v0.0.1
34+
with:
35+
version: v2.13.0
36+
37+
- name: Run test
38+
run: |
39+
pipenv run pytest python/src/test --junit-xml=test-report/report.xml
40+
41+
linting:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: "Checkout"
45+
uses: actions/checkout@v3
46+
47+
- uses: actions/setup-python@v4
48+
with:
49+
python-version: '3.10'
50+
51+
- name: Install linters
52+
run: |
53+
pip install black isort flake8
54+
55+
- name: black
56+
run: |
57+
python -m black --check python/src/main/
58+
59+
- name: isort
60+
run: |
61+
python -m isort python/src/main/ --multi-line 3 --profile black --check
62+
63+
- name: flake8
64+
run: |
65+
python -m flake8 python/src/main/

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ __pycache__/
66
# C extensions
77
*.so
88

9+
10+
# macos
11+
.DS_Store
12+
13+
# JetBrains
14+
.idea
15+
916
# Distribution / packaging
1017
.Python
1118
build/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Frederik Peter Høngaard
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Pipfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[packages]
7+
loguru = "==0.6.*"
8+
pandas = "==1.5.*"
9+
10+
[dev-packages]
11+
black = "==23.*"
12+
flake8 = "*"
13+
isort = "*"
14+
pytest = "*"
15+
16+
[requires]
17+
python_version = "3.10"

Pipfile.lock

Lines changed: 271 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
# easy-model
1+
# easy-model
2+
3+
---
4+

0 commit comments

Comments
 (0)