Skip to content

Commit 3c5c6f7

Browse files
authored
V1.0.0 (#6)
1 parent f14c9f2 commit 3c5c6f7

27 files changed

+1817
-283
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ensure Docker script files uses LF to support Docker for Windows.
2+
# Ensure "git config --global core.autocrlf input" before you clone
3+
* text eol=lf
4+
*.py whitespace=error

.github/CODEOWNERS

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

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: pip
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
time: "04:00"
8+
open-pull-requests-limit: 10

.github/pr-labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
feature: ['feature/*', 'feat/*']
2+
enhancement: enhancement/*
3+
bug: fix/*
4+
breaking: breaking/*
5+
documentation: doc/*

.github/release-drafter.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name-template: 'v$NEXT_PATCH_VERSION'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
exclude-labels:
4+
- 'exclude-from-changelog'
5+
categories:
6+
- title: '⚠️ Breaking changes'
7+
label: 'breaking'
8+
- title: '🚀 Features'
9+
label: 'feature'
10+
- title: '✨ Enhancement'
11+
label: 'enhancement'
12+
- title: '📘 Documentation'
13+
label: 'documentation'
14+
- title: '🐛 Bug Fixes'
15+
label: 'bug'
16+
template: |
17+
## What's changed
18+
$CHANGES
19+
20+
## Contributors to this release
21+
$CONTRIBUTORS

.github/workflows/main.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Linters
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
jobs:
11+
analyse:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Set up Python 3.7
19+
uses: actions/setup-python@v2.1.4
20+
with:
21+
python-version: 3.7
22+
23+
- name: Set up Poetry
24+
uses: Gr1N/setup-poetry@v4
25+
26+
- name: Cache venv
27+
uses: actions/cache@v2.1.3
28+
with:
29+
path: .venv
30+
key: venv-${{ hashFiles('**/poetry.lock') }}
31+
32+
- name: Cache pre-commit
33+
uses: actions/cache@v2.1.3
34+
with:
35+
path: ~/.cache/pre-commit/
36+
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('**/.pre-commit-config.yaml') }} # yamllint disable-line
37+
38+
- name: Install dependencies
39+
run: poetry install
40+
41+
- name: Register problems matchers
42+
run: |
43+
echo "::add-matcher::.github/workflows/matchers/pylint.json"
44+
echo "::add-matcher::.github/workflows/matchers/flake8.json"
45+
echo "::add-matcher::.github/workflows/matchers/mypy.json"
46+
echo "::add-matcher::.github/workflows/matchers/python.json"
47+
48+
- name: Apply all pre-commit
49+
run: poetry run pre-commit run -a
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "flake8-error",
5+
"severity": "error",
6+
"pattern": [
7+
{
8+
"regexp": "^(.*):(\\d+):(\\d+):\\s([EF]\\d{3}\\s.*)$",
9+
"file": 1,
10+
"line": 2,
11+
"column": 3,
12+
"message": 4
13+
}
14+
]
15+
},
16+
{
17+
"owner": "flake8-warning",
18+
"severity": "warning",
19+
"pattern": [
20+
{
21+
"regexp": "^(.*):(\\d+):(\\d+):\\s([CDNW]\\d{3}\\s.*)$",
22+
"file": 1,
23+
"line": 2,
24+
"column": 3,
25+
"message": 4
26+
}
27+
]
28+
}
29+
]
30+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "mypy",
5+
"pattern": [
6+
{
7+
"regexp": "^(.+):(\\d+):\\s(error|warning):\\s(.+)$",
8+
"file": 1,
9+
"line": 2,
10+
"severity": 3,
11+
"message": 4
12+
}
13+
]
14+
}
15+
]
16+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "pylint-error",
5+
"severity": "error",
6+
"pattern": [
7+
{
8+
"regexp": "^(.+):(\\d+):(\\d+):\\s(([EF]\\d{4}):\\s.+)$",
9+
"file": 1,
10+
"line": 2,
11+
"column": 3,
12+
"message": 4,
13+
"code": 5
14+
}
15+
]
16+
},
17+
{
18+
"owner": "pylint-warning",
19+
"severity": "warning",
20+
"pattern": [
21+
{
22+
"regexp": "^(.+):(\\d+):(\\d+):\\s(([CRW]\\d{4}):\\s.+)$",
23+
"file": 1,
24+
"line": 2,
25+
"column": 3,
26+
"message": 4,
27+
"code": 5
28+
}
29+
]
30+
}
31+
]
32+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "python",
5+
"pattern": [
6+
{
7+
"regexp": "^\\s*File\\s\\\"(.*)\\\",\\sline\\s(\\d+),\\sin\\s(.*)$",
8+
"file": 1,
9+
"line": 2
10+
},
11+
{
12+
"regexp": "^\\s*raise\\s(.*)\\(\\'(.*)\\'\\)$",
13+
"message": 2
14+
}
15+
]
16+
}
17+
]
18+
}

0 commit comments

Comments
 (0)