Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CIs following v0.6.0 release and test changes in new Mega-Linter preview release #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions .github/workflows/mega-linter.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Mega-Linter GitHub Action configuration file
# More info at https://nvuillam.github.io/mega-linter
# More info at https://megalinter.github.io
name: Mega-Linter

on: # yamllint disable-line rule:truthy
Expand All @@ -20,16 +20,11 @@ permissions:
pull-requests: write
statuses: write

jobs:
# Cancel duplicate jobs: https://github.com/fkirc/skip-duplicate-actions#option-3-cancellation-only
cancel_duplicates:
name: Cancel duplicate jobs
runs-on: ubuntu-latest
steps:
- uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build:
name: Mega-Linter
runs-on: ubuntu-latest
Expand All @@ -45,11 +40,11 @@ jobs:
- name: Mega-Linter
id: ml
# You can override Mega-Linter flavor used to have faster performance
# More info at https://nvuillam.github.io/mega-linter/flavors/
uses: nvuillam/mega-linter/flavors/python@v4
# More info at https://megalinter.github.io/flavors/
uses: megalinter/megalinter/flavors/python@beta
env:
# All available variables are described in documentation
# https://nvuillam.github.io/mega-linter/configuration/
# https://megalinter.github.io/configuration/
VALIDATE_ALL_CODEBASE: true # Set ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} to validate only diff with master branch
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ADD YOUR CUSTOM ENV VARIABLES HERE TO OVERRIDE VALUES OF .mega-linter.yml AT THE ROOT OF YOUR REPOSITORY
Expand Down
9 changes: 5 additions & 4 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration file for Mega-Linter
# See all available variables at https://nvuillam.github.io/mega-linter/configuration/ and in linters documentation
# See all available variables at https://megalinter.github.io/configuration/ and in linters documentation

# ENABLE: # If you use ENABLE variable, all other languages/formats/tooling-formats will be disabled by default
# ENABLE_LINTERS: # If you use ENABLE_LINTERS variable, all other linters will be disabled by default
Expand All @@ -8,8 +8,6 @@
# - SPELL # Uncomment to disable checks of spelling mistakes
DISABLE_LINTERS:
- MARKDOWN_MARKDOWN_TABLE_FORMATTER # Unable to locally autoformat tables
- PYTHON_BANDIT # Unable to set to use repo config file; re-enable when fixed
- PYTHON_BLACK # Version in Mega-Linter doesn't yet support Python 3.9
- PYTHON_MYPY # Managed externally; relies on locally installed packages
- PYTHON_PYLINT # Managed externally; relies on locally installed packages
- SPELL_CSPELL # Vast number of false positives
Expand All @@ -22,9 +20,12 @@ FORMATTERS_DISABLE_ERRORS: false
SHOW_ELAPSED_TIME: true

MARKDOWN_MARKDOWNLINT_CONFIG_FILE: LINTER_DEFAULT
# PYTHON_BANDIT_CONFIG_FILE: LINTER_DEFAULT # Uncomment when Bandit config supported
PYTHON_BANDIT_CLI_LINT_MODE: project # For testing
PYTHON_BANDIT_CONFIG_FILE: .bandit.yml # Explicitly specify so Bandit works
PYTHON_BLACK_CONFIG_FILE: LINTER_DEFAULT
PYTHON_FLAKE8_CONFIG_FILE: LINTER_DEFAULT
PYTHON_ISORT_CONFIG_FILE: LINTER_DEFAULT
YAML_PRETTIER_CONFIG_FILE: LINTER_DEFAULT
YAML_YAMLLINT_CONFIG_FILE: LINTER_DEFAULT

LOG_LEVEL: DEBUG # Temporarily added to debug mega-linter
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


<!-- Things used -->
[![PyPI Python version](https://img.shields.io/pypi/pyversions/submanager?label=Python)](https://pypi.org/project/submanager/) <!-- markdown-link-check-disable-line -->
[![PyPI Python version](https://img.shields.io/pypi/pyversions/submanager?label=Python)](https://pypi.org/project/submanager/)
[![Framework](https://img.shields.io/badge/Framework-PRAW-orange.svg)](https://github.com/pytest-dev/pytest)
[![Tests Pytest](https://img.shields.io/badge/Testing-Pytest-blue.svg)](https://pytest.org/)
[![Pre-Commit](https://img.shields.io/badge/Linting-Pre--Commit-brightgreen?logo=pre-commit&logoColor=white)](https://pre-commit.com/)
Expand All @@ -12,10 +12,10 @@
<!-- Project status -->
[![License](https://img.shields.io/github/license/r-spacex/submanager?label=License)](https://github.com/r-spacex/submanager/blob/master/LICENSE.txt)
[![Maintainer](https://img.shields.io/badge/Maintainer-CAM--Gerlach-blue)](https://github.com/CAM-Gerlach)
[![PyPI status](https://img.shields.io/pypi/status/submanager?label=Status)](https://pypi.org/project/submanager/) <!-- markdown-link-check-disable-line -->
[![PyPI status](https://img.shields.io/pypi/status/submanager?label=Status)](https://pypi.org/project/submanager/)
[![GitHub version](https://img.shields.io/github/v/tag/r-spacex/submanager?include_prereleases&label=GitHub)](https://github.com/r-spacex/submanager/releases)
[![PyPI version](https://img.shields.io/pypi/v/submanager?label=PyPI)](https://pypi.org/project/submanager/) <!-- markdown-link-check-disable-line -->
[![PyPI wheel](https://img.shields.io/pypi/wheel/submanager?label=Wheel)](https://pypi.org/project/submanager/) <!-- markdown-link-check-disable-line -->
[![PyPI version](https://img.shields.io/pypi/v/submanager?label=PyPI)](https://pypi.org/project/submanager/)
[![PyPI wheel](https://img.shields.io/pypi/wheel/submanager?label=Wheel)](https://pypi.org/project/submanager/)
[![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/spacex?label=Subs)](https://www.reddit.com/r/spacex/)

<!-- Build status -->
Expand Down Expand Up @@ -88,7 +88,7 @@ Of course, you're free to use any environment management tool of your choice (co

### Download and install

To download and install the package from the [Python Package Index (PyPI)](https://pypi.org/project/submanager/), simply activate your environment and run <!-- markdown-link-check-disable-line -->
To download and install the package from the [Python Package Index (PyPI)](https://pypi.org/project/submanager/), simply activate your environment and run

```bash
python -m pip install submanager
Expand Down