Skip to content

Commit 06d0fa5

Browse files
committed
Use poetry, cleanup
1 parent b5106c5 commit 06d0fa5

21 files changed

+2337
-215
lines changed

.codeclimate.yml

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

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 4
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[Makefile]
13+
indent_style = tab
14+
15+
[*.md]
16+
trim_trailing_whitespace = false
17+
18+
[{*.json,Makefile,*.sh,*.tf,*.yml}]
19+
indent_size = 2

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto eol=lf whitespace=tab-in-indent,blank-at-eol,tabwidth=4
2+
Makefile text whitespace=-tab-in-indent,blank-at-eol,tabwidth=2

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: Build Pipeline
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
push:
9+
tags:
10+
- v*
11+
12+
jobs:
13+
build:
14+
name: Build Pipeline
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup binaries. Poetry, Twine.
20+
run: make setup-binaries
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: 3.9
26+
cache: poetry
27+
28+
- name: Install dependencies
29+
run: make install
30+
31+
- name: Lint code
32+
run: make lint
33+
34+
- name: Run tests
35+
run: make test
36+
37+
- name: Build package
38+
run: make build
39+
40+
- name: Publish package to PyPI
41+
if: startsWith(github.ref, 'refs/tags')
42+
run: |
43+
poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
44+
make publish

0 commit comments

Comments
 (0)