<commit_before># including some GitLab "templates" to enable their automatic checking of stuff
include:
  # Static Application Security Testing
  - template: SAST.gitlab-ci.yml

  # Check dependencies for potential problems
  - template: Dependency-Scanning.gitlab-ci.yml

  # License Scanning; Overkill, but shouldn't hurt
  - template: License-Scanning.gitlab-ci.yml

image: "python:3.6"

before_script:
  - python --version
  - pip install -r requirements.txt

stages:
  - build
  - test
  - deploy
  - dast

flake8:
  stage: test
  allow_failure: true
  script:
  - flake8 --max-line-length=120 *.py
  
#mypy:
#  stage: test
#  allow_failure: true
#  script:
#  - pwd
#  - ls -l
#  - python -m mypy feed2discord.py
#  - python -m mypy show_all_entries.py<commit_msg>Stop allowing flake8 to fail (but pylint is far too strict about too many things, so keep letting that fail and just use it to track progress)<commit_after># including some GitLab "templates" to enable their automatic checking of stuff
include:
  # Static Application Security Testing
  - template: SAST.gitlab-ci.yml

  # Check dependencies for potential problems
  - template: Dependency-Scanning.gitlab-ci.yml

  # License Scanning; Overkill, but shouldn't hurt
  - template: License-Scanning.gitlab-ci.yml

image: "python:3.6"

before_script:
  - python --version
  - pip install -r requirements.txt

stages:
  - build
  - test
  - deploy
  - dast

flake8:
  stage: test
  script:
  - flake8 --max-line-length=120 *.py
  
#mypy:
#  stage: test
#  allow_failure: true
#  script:
#  - pwd
#  - ls -l
#  - python -m mypy feed2discord.py
#  - python -m mypy show_all_entries.py
{'fraction_non_alphanumeric': 0.09836065573770492, 'fraction_numerical': 0.010321797207043109, 'mean_word_length': 3.1933842239185752, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '600414', 'n_tokens_mistral': 587, 'n_tokens_neox': 554, 'n_words': 171}