Init python environment
This commit is contained in:
parent
11223c3803
commit
efc84afc4b
5 changed files with 50 additions and 0 deletions
21
.github/workflows/ci.yml
vendored
Normal file
21
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: CI
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ~/.cache/pip
|
||||
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
|
||||
- name: Install dependencies
|
||||
run: pip install -r dev-requirements.txt
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -212,3 +212,5 @@ dmypy.json
|
|||
.pyre/
|
||||
|
||||
# End of https://www.gitignore.io/api/node,python
|
||||
|
||||
env/
|
||||
|
|
11
dev-requirements.txt
Normal file
11
dev-requirements.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
-r requirements.txt
|
||||
|
||||
black==19.10b0
|
||||
flake8==3.7.9
|
||||
isort==4.3.21
|
||||
mypy==0.770
|
||||
flake8-bugbear==20.1.4
|
||||
flake8-builtins==1.5.2
|
||||
flake8-comprehensions==3.2.2
|
||||
flake8-mutable==1.2.0
|
||||
flake8-tuple==0.4.1
|
0
requirements.txt
Normal file
0
requirements.txt
Normal file
16
setup.cfg
Normal file
16
setup.cfg
Normal file
|
@ -0,0 +1,16 @@
|
|||
[mypy]
|
||||
warn_unused_ignores = True
|
||||
strict_optional = True
|
||||
check_untyped_defs = True
|
||||
ignore_missing_imports = True
|
||||
|
||||
[flake8]
|
||||
extend_ignore=E128,E501
|
||||
|
||||
[isort]
|
||||
multi_line_output=3
|
||||
include_trailing_comma=True
|
||||
force_grid_wrap=0
|
||||
use_parentheses=True
|
||||
line_length=88
|
||||
not_skip=__init__.py
|
Reference in a new issue