Skip to content

feat: implementazione di una calcolatrice in Python #36

feat: implementazione di una calcolatrice in Python

feat: implementazione di una calcolatrice in Python #36

Workflow file for this run

name: CI
on:
push:
branches: [main]
paths-ignore:
- "README.md"
- "docs/**"
pull_request:
branches: [main]
paths-ignore:
- "README.md"
- "docs/**"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: Install dependencies for requirements and testing
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
- name: Lint with pylint
run: pylint $(git ls-files '*.py')
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Lint with mypy
run: mypy $(git ls-files '*.py')
- name: Check code formatting with black
run: black --check --diff $(git ls-files '*.py')
- name: Check code formatting with isort
run: isort --check-only --diff $(git ls-files '*.py')