Skip to content

hofiorg/python_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Scripts Pylint, Pytest and Build

check_urls, hello_world and other stuff.

Installation

Mac with Pyenv

https://stackoverflow.com/a/71657414

Install modules with pip

pip install .

Lint

pylint $(git ls-files '*.py')

Test

pytest tests --junitxml=junit/test-results.xml --html=junit/test-results.html

Build

python -m build

This script checks URLs defined in a JSON file. For each URL, it verifies if the response contains a specific string and prints the result using emojis to indicate success or failure.

Usage check_url

scripts/check_urls.py data/urls.json

lambda function within filter to select fruits starting with "A" from a list

Usage filter_lambda

scripts/filter_lambda.py

simple hello world

Usage hello_world

scripts/hello_world.py

About

Python scripts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages