Skip to content

Commit

Permalink
Merge pull request #1 from Cyberproof/feature/components-creation
Browse files Browse the repository at this point in the history
Feature/components creation
  • Loading branch information
DorAbu authored Jul 6, 2021
2 parents 9fc7ad8 + 86046fd commit 46b0eaf
Show file tree
Hide file tree
Showing 38 changed files with 3,361 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
omit = tests/*, */__init__.py
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 90
ignore = E203, E501, W503
exclude = __init__.py
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test

on:
push:
pull_request:
types: [opened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8]
fail-fast: false

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-test
- name: Install Flit
if: steps.cache.outputs.cache-hit != 'true'
run: pip install flit
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: flit install --symlink
- name: Test
run: bash scripts/test.sh
# todo consider
# - name: Upload coverage
# uses: codecov/codecov-action@v1
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
Expand Down Expand Up @@ -127,3 +128,12 @@ dmypy.json

# Pyre type checker
.pyre/

#Pycharm
.idea/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
repos:
- repo: https://github.com/psf/black
rev: 21.5b1
hooks:
- id: black
language_version: python3.6
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.812"
hooks:
- id: mypy
- repo: https://github.com/pycqa/flake8
rev: "3.9.2"
hooks:
- id: flake8
- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
name: isort (python)


Loading

0 comments on commit 46b0eaf

Please sign in to comment.