Skip to content

Commit bd0e8f9

Browse files
authored
Migrate to poetry (#2)
1 parent f4305c4 commit bd0e8f9

25 files changed

Lines changed: 1086 additions & 161 deletions

.github/workflows/main.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
tests:
13+
name: "Python ${{ matrix.python-version }}"
14+
runs-on: "ubuntu-latest"
15+
16+
strategy:
17+
matrix:
18+
python-version: ["3.6", "3.7", "3.8"]
19+
20+
steps:
21+
- uses: "actions/checkout@v2"
22+
- uses: "actions/setup-python@v1"
23+
with:
24+
python-version: "${{ matrix.python-version }}"
25+
26+
- name: Install and set up Poetry
27+
run: |
28+
curl -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py
29+
python get-poetry.py -y
30+
31+
- name: "Install tox"
32+
run: |
33+
python -m pip install --upgrade tox tox-gh-actions
34+
- name: "Run tox targets for ${{ matrix.python-version }}"
35+
run: |
36+
source $HOME/.poetry/env
37+
python -m tox

.gitignore

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,25 @@ dmypy.json
128128
# Pyre type checker
129129
.pyre/
130130

131-
.vscode
131+
132+
# User-specific stuff
133+
.idea/**/workspace.xml
134+
.idea/**/tasks.xml
135+
.idea/**/usage.statistics.xml
136+
.idea/**/dictionaries
137+
.idea/**/shelf
138+
139+
# Generated files
140+
.idea/**/contentModel.xml
141+
142+
# Sensitive or high-churn files
143+
.idea/**/dataSources/
144+
.idea/**/dataSources.ids
145+
.idea/**/dataSources.local.xml
146+
.idea/**/sqlDataSources.xml
147+
.idea/**/dynamic.xml
148+
.idea/**/uiDesigner.xml
149+
.idea/**/dbnavigator.xml
150+
151+
# File-based project format
152+
*.iws

.idea/inspectionProfiles/Project_Default.xml

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

.idea/inspectionProfiles/profiles_settings.xml

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

.idea/misc.xml

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

.idea/modules.xml

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

.idea/python-tahoma-api.iml

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

.idea/vcs.xml

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

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v2.5.0
4+
hooks:
5+
- id: check-json
6+
- id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- repo: https://github.com/python/black
9+
rev: 19.10b0
10+
hooks:
11+
- id: black
12+
language_version: python3.8
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v2.4.0
15+
hooks:
16+
- id: flake8
17+
language_version: python3.8
18+
- repo: https://github.com/pre-commit/mirrors-mypy
19+
rev: v0.740
20+
hooks:
21+
- id: mypy
22+
- repo: https://github.com/pre-commit/mirrors-pylint
23+
rev: v2.4.4
24+
hooks:
25+
- id: pylint
26+
- repo: https://github.com/asottile/seed-isort-config
27+
rev: v1.9.4
28+
hooks:
29+
- id: seed-isort-config
30+
- repo: https://github.com/pre-commit/mirrors-isort
31+
rev: v4.3.21
32+
hooks:
33+
- id: isort
34+
additional_dependencies: ['toml']

.pylintrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[BASIC]
2+
good-names=id
3+
4+
[LOGGING]
5+
logging-format-style=fstr
6+
7+
[MESSAGES CONTROL]
8+
disable=
9+
missing-module-docstring,
10+
missing-class-docstring,
11+
missing-function-docstring,
12+
no-self-use,
13+
too-few-public-methods,
14+
too-many-public-methods,
15+
too-many-arguments,
16+
bad-continuation,
17+
import-error,
18+
unsubscriptable-object,
19+
fixme,
20+
pointless-string-statement,
21+
redefined-builtin

0 commit comments

Comments
 (0)