Skip to content

Commit 69f54c3

Browse files
committed
2 parents ed438f2 + 66b94f1 commit 69f54c3

4 files changed

Lines changed: 17 additions & 23 deletions

File tree

.deepsource.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version = 1
2+
3+
[[analyzers]]
4+
name = "python"
5+
enabled = true
6+
7+
[analyzers.meta]
8+
runtime_version = "3.x.x"
9+
10+
[[analyzers]]
11+
name = "test-coverage"
12+
enabled = true

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: CI
3+
name: Check that all notebooks work
44

55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
@@ -30,19 +30,18 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232

33-
- name: Install dependencies
33+
- name: Install dependencies and Flake8/Flake8-nb for linting
3434
run: |
35-
sudo apt-get install -y tor
3635
python3 -m pip install --upgrade pip
3736
pip3 install flake8 flake8-nb
3837
pip3 install -r binder/requirements.txt
3938
4039
- name: Lint with flake8
4140
run: |
4241
# stop the build if there are Python syntax errors or undefined names
43-
flake8-nb . --count --select=E9,F63,F7,F82 --show-source --statistics
42+
flake8-nb notes/*.ipynb --count --select=E9,F63,F7,F82 --show-source --statistics
4443
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
45-
flake8-nb . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
44+
flake8-nb notes/*.ipynb --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
4645
4746
- name: Run all the notebooks using nbconvert
4847
run: |

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ipeirotis/introduction-to-python/blob/master/)
22
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ipeirotis/introduction-to-python/master)
3-
[![Build Status](https://travis-ci.com/ipeirotis/introduction-to-python.svg?branch=master)](https://travis-ci.org/ipeirotis/introduction-to-python)
3+
[![Build Status](https://github.com/ipeirotis/introduction-to-python/workflows/Check%20that%20all%20notebooks%20work/badge.svg)](https://github.com/ipeirotis/introduction-to-python/actions?query=branch%3Amaster)
44

55
# Introduction to Python for Data Science
66

0 commit comments

Comments
 (0)