saeedghsh / playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playground

GPLv3 License
black pylint pytest pytest-cov mypy

Next in line:

Dependencies

apt install python3-tk
pip install -r requirements.txt

Examples

python3 -m entry_points.collatz_entry -p graph
python3 -m entry_points.lorenz_entry
python3 -m entry_points.stochastic_processes_entry
python3 -m entry_points.transformation_entry
python3 -m entry_points.chaos_entry logistic-map

Code quality checks

$ black . --check
$ isort . --check-only
$ mypy . --explicit-package-bases
$ pylint $(git ls-files '*.py')
$ xvfb-run --auto-servernum pytest
$ xvfb-run --auto-servernum pytest --cov=.
$ xvfb-run --auto-servernum pytest --cov=. --cov-report html; firefox htmlcov/index.html

Pyreverse : UML Diagrams for Python

$ pip install pylint # pyreverse is now part of pylint
$ cd ~/code/ChaoticSystems
$ pyreverse -o svg -p chaos chaos/*.py
$ pyreverse -o svg -p chaoticSystems main.py
$ pyreverse -o svg -p tests/*.py
# -a N, -A    depth of research for ancestors
# -s N, -S    depth of research for associated classes
# -A, -S      all ancestors, resp. all associated
# -m[yn]      add or remove the module name
# -f MOD      filter the attributes : PUB_ONLY/SPECIAL/OTHER/ALL
# -k          show only the classes (no attributes and methods)
# -b          show 'builtin' objects

Laundry list

  • unittest is virtually non-existent
  • update the commands under Pyreverse section
  • There are too many warning suppression, remove and fix

License

Copyright (C) Saeed Gholami Shahbandi

NOTE: Portions of this code/project were developed with the assistance of ChatGPT, a product of OpenAI.
Distributed with a GNU GENERAL PUBLIC LICENSE; see LICENSE.

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%