Skip to content

Commit

Permalink
start
Browse files Browse the repository at this point in the history
basic information and description
  • Loading branch information
mdabrowski1990 committed Feb 6, 2021
1 parent 3c01c1a commit 808fe75
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Automated quality check

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}

- name: Install project dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
pip install -r requirements.txt
pip install -r tests/requirements_for_tests.txt
- name: Static code analysis [prospector]
run: |
prospector --profile tests/prospector_profile.yaml uds
- name: Unit and integrations tests [pytest]
run: |
pytest --cov-report term-missing --cov=uds tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ __pycache__/
*.so

# Distribution / packaging
.idea
.Python
build/
develop-eggs/
Expand Down
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*****
UDS
*****

.. image:: https://readthedocs.org/projects/uds/badge/?version=latest
:target: https://uds.readthedocs.io/
:alt: Documentation

Python package for handling Unified Diagnostic Services (UDS) protocol defined by ISO 14229.
It supports different communication buses on both sides of communication (client and server).


Documentation
=============
Visit: https://uds.readthedocs.io/en/latest/


Contribution
============
This project is in early development phase. If you are willing to help with the implementation, please contact with
the author (Maciej Dąbrowski <[email protected]>)
Empty file added tests/__init__.py
Empty file.
48 changes: 48 additions & 0 deletions tests/prospector_profile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# basic prospector settings

strictness: veryhigh
output-format: grouped
doc-warnings: true
autodetect: true
test-warnings: true

# default tools configuration: http://prospector.landscape.io/en/master/supported_tools.html#defaults

pep8:
full: true
options:
max-line-length: 120

pylint:
options:
max-line-length: 120
max-args: 8

pyflakes:
disable:
- F401

pep257:
disable:
- D212
- D203

mccabe:
run: true

options:
max-complexity: 10


# additional tools configuration: http://prospector.landscape.io/en/master/supported_tools.html#optional-extras

mypy:
run: true
options:
ignore-missing-imports: true

vulture:
run: true

pyroma:
run: true
7 changes: 7 additions & 0 deletions tests/requirements_for_tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pytest>=6.2.2
pytest-cov>=2.11.1
mock>=4.0.2
prospector==1.3.1
mypy==0.800
vulture==2.3
pyroma==2.6
Empty file added tests/uds/__init__.py
Empty file.
Empty file added uds/__init__.py
Empty file.

0 comments on commit 808fe75

Please sign in to comment.