diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..5990d9c64 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "" # See documentation for possible values + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml new file mode 100644 index 000000000..4f0ba20a9 --- /dev/null +++ b/.github/workflows/sonarqube.yml @@ -0,0 +1,66 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +# This workflow helps you trigger a SonarQube analysis of your code and populates +# GitHub Code Scanning alerts with the vulnerabilities found. +# (this feature is available starting from SonarQube 9.7, Developer Edition and above) + +# 1. Make sure you add a valid GitHub configuration to your SonarQube (Administration > DevOps platforms > GitHub) + +# 2. Import your project on SonarQube +# * Add your repository as a new project by clicking "Create project" from your homepage. +# +# 3. Select GitHub Actions as your CI and follow the tutorial +# * a. Generate a new token and add it to your GitHub repository's secrets using the name SONAR_TOKEN +# (On SonarQube, click on your avatar on top-right > My account > Security or ask your administrator) +# +# * b. Copy/paste your SonarQube host URL to your GitHub repository's secrets using the name SONAR_HOST_URL +# +# * c. Copy/paste the project Key into the args parameter below +# (You'll find this information in SonarQube by following the tutorial or by clicking on Project Information at the top-right of your project's homepage) + +# Feel free to take a look at our documentation (https://docs.sonarqube.org/latest/analysis/github-integration/) +# or reach out to our community forum if you need some help (https://community.sonarsource.com/c/sq/10) + +name: SonarQube analysis + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + workflow_dispatch: + +permissions: + pull-requests: read # allows SonarQube to decorate PRs with analysis results + +jobs: + Analysis: + runs-on: ubuntu-latest + + steps: + - name: Analyze with SonarQube + + # You can pin the exact commit or the version. + # uses: SonarSource/sonarqube-scan-action@v1.1.0 + uses: SonarSource/sonarqube-scan-action@7295e71c9583053f5bf40e9d4068a0c974603ec8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on SonarQube, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret) + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} # add the URL of your instance to the secrets of this repo with the name SONAR_HOST_URL (Settings > Secrets > Actions > add new repository secret) + with: + # Additional arguments for the sonarcloud scanner + args: + # Unique key of your project. You can find it in SonarQube > [my project] > Project Information (top-right menu) + # mandatory + -Dsonar.projectKey= + # Comma-separated paths to directories containing main source files. + #-Dsonar.sources= # optional, default is project base directory + # When you need the analysis to take place in a directory other than the one from which it was launched + #-Dsonar.projectBaseDir= # optional, default is . + # Comma-separated paths to directories containing test source files. + #-Dsonar.tests= # optional. For more info about Code Coverage, please refer to https://docs.sonarcloud.io/enriching/test-coverage/overview/ + # Adds more detail to both client and server-side analysis logs, activating DEBUG mode for the scanner, and adding client-side environment variables and system properties to the server-side log of analysis report processing. + #-Dsonar.verbose= # optional, default is false diff --git a/02_activities/assignments/assignment_1.ipynb b/02_activities/assignments/assignment_1.ipynb index 828092657..6e0ab2f9b 100644 --- a/02_activities/assignments/assignment_1.ipynb +++ b/02_activities/assignments/assignment_1.ipynb @@ -34,7 +34,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 4, "id": "4a3485d6-ba58-4660-a983-5680821c5719", "metadata": {}, "outputs": [], @@ -56,10 +56,288 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "id": "a431d282-f9ca-4d5d-8912-71ffc9d8ea19", "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
| \n", + " | alcohol | \n", + "malic_acid | \n", + "ash | \n", + "alcalinity_of_ash | \n", + "magnesium | \n", + "total_phenols | \n", + "flavanoids | \n", + "nonflavanoid_phenols | \n", + "proanthocyanins | \n", + "color_intensity | \n", + "hue | \n", + "od280/od315_of_diluted_wines | \n", + "proline | \n", + "class | \n", + "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", + "14.23 | \n", + "1.71 | \n", + "2.43 | \n", + "15.6 | \n", + "127.0 | \n", + "2.80 | \n", + "3.06 | \n", + "0.28 | \n", + "2.29 | \n", + "5.64 | \n", + "1.04 | \n", + "3.92 | \n", + "1065.0 | \n", + "0 | \n", + "
| 1 | \n", + "13.20 | \n", + "1.78 | \n", + "2.14 | \n", + "11.2 | \n", + "100.0 | \n", + "2.65 | \n", + "2.76 | \n", + "0.26 | \n", + "1.28 | \n", + "4.38 | \n", + "1.05 | \n", + "3.40 | \n", + "1050.0 | \n", + "0 | \n", + "
| 2 | \n", + "13.16 | \n", + "2.36 | \n", + "2.67 | \n", + "18.6 | \n", + "101.0 | \n", + "2.80 | \n", + "3.24 | \n", + "0.30 | \n", + "2.81 | \n", + "5.68 | \n", + "1.03 | \n", + "3.17 | \n", + "1185.0 | \n", + "0 | \n", + "
| 3 | \n", + "14.37 | \n", + "1.95 | \n", + "2.50 | \n", + "16.8 | \n", + "113.0 | \n", + "3.85 | \n", + "3.49 | \n", + "0.24 | \n", + "2.18 | \n", + "7.80 | \n", + "0.86 | \n", + "3.45 | \n", + "1480.0 | \n", + "0 | \n", + "
| 4 | \n", + "13.24 | \n", + "2.59 | \n", + "2.87 | \n", + "21.0 | \n", + "118.0 | \n", + "2.80 | \n", + "2.69 | \n", + "0.39 | \n", + "1.82 | \n", + "4.32 | \n", + "1.04 | \n", + "2.93 | \n", + "735.0 | \n", + "0 | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 173 | \n", + "13.71 | \n", + "5.65 | \n", + "2.45 | \n", + "20.5 | \n", + "95.0 | \n", + "1.68 | \n", + "0.61 | \n", + "0.52 | \n", + "1.06 | \n", + "7.70 | \n", + "0.64 | \n", + "1.74 | \n", + "740.0 | \n", + "2 | \n", + "
| 174 | \n", + "13.40 | \n", + "3.91 | \n", + "2.48 | \n", + "23.0 | \n", + "102.0 | \n", + "1.80 | \n", + "0.75 | \n", + "0.43 | \n", + "1.41 | \n", + "7.30 | \n", + "0.70 | \n", + "1.56 | \n", + "750.0 | \n", + "2 | \n", + "
| 175 | \n", + "13.27 | \n", + "4.28 | \n", + "2.26 | \n", + "20.0 | \n", + "120.0 | \n", + "1.59 | \n", + "0.69 | \n", + "0.43 | \n", + "1.35 | \n", + "10.20 | \n", + "0.59 | \n", + "1.56 | \n", + "835.0 | \n", + "2 | \n", + "
| 176 | \n", + "13.17 | \n", + "2.59 | \n", + "2.37 | \n", + "20.0 | \n", + "120.0 | \n", + "1.65 | \n", + "0.68 | \n", + "0.53 | \n", + "1.46 | \n", + "9.30 | \n", + "0.60 | \n", + "1.62 | \n", + "840.0 | \n", + "2 | \n", + "
| 177 | \n", + "14.13 | \n", + "4.10 | \n", + "2.74 | \n", + "24.5 | \n", + "96.0 | \n", + "2.05 | \n", + "0.76 | \n", + "0.56 | \n", + "1.35 | \n", + "9.20 | \n", + "0.61 | \n", + "1.60 | \n", + "560.0 | \n", + "2 | \n", + "
178 rows × 14 columns
\n", + "