-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add lint, changelog reminder, black and isort
- Loading branch information
Showing
49 changed files
with
539 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: "Changelog Reminder" | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
# Enforces the update of a changelog file on every pull request | ||
changelog: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dangoslen/changelog-enforcer@v3 | ||
with: | ||
changeLogPath: 'CHANGELOG.md' | ||
skipLabels: 'Skip-Changelog' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Lint files - no fixing | ||
|
||
# This will check linting in local PRs | ||
on: ["push", "pull_request"] | ||
|
||
jobs: | ||
build: | ||
|
||
name: Lint-only | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.11] | ||
|
||
steps: | ||
|
||
# Check out Scout code | ||
- name: Check out git repository | ||
uses: actions/checkout@v4 | ||
|
||
# Set up python | ||
- name: Set up Python ${{ matrix.python-version}} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version}} | ||
|
||
- name: Install Python Dependencies | ||
run: | | ||
pip install black flake8 isort | ||
- name: Run linters | ||
uses: wearerequired/lint-action@v2 | ||
# Let linters fix problems if they can | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
auto_fix: false | ||
# Enable linters | ||
black: true | ||
black_args: "--check -l 100" | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8: true | ||
flake8_args: "chanjo/ --count --select=E9,F63,F7,F82 --show-source --statistics" | ||
|
||
- name: Run isort | ||
uses: jamescurtin/isort-action@master | ||
with: | ||
configuration: "--check-only --diff -m 3 --tc --fgw 0 --up -n -l 100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
:licence: MIT, see LICENCE for more details | ||
""" | ||
import logging | ||
|
||
try: | ||
from importlib.metadata import version | ||
except ImportError: # Backport support for importlib metadata on Python 3.7 | ||
|
@@ -23,18 +24,18 @@ | |
/___/ | ||
""" | ||
|
||
__title__ = 'chanjo' | ||
__summary__ = 'coverage analysis tool for clinical sequencing' | ||
__uri__ = 'http://www.chanjo.co/' | ||
__title__ = "chanjo" | ||
__summary__ = "coverage analysis tool for clinical sequencing" | ||
__uri__ = "http://www.chanjo.co/" | ||
|
||
__version__ = version(__title__) | ||
__codename__ = 'Optimistic Otter' | ||
__codename__ = "Optimistic Otter" | ||
|
||
__author__ = 'Robin Andeer' | ||
__email__ = '[email protected]' | ||
__author__ = "Robin Andeer" | ||
__email__ = "[email protected]" | ||
|
||
__license__ = 'MIT' | ||
__copyright__ = 'Copyright 2016 Robin Andeer' | ||
__license__ = "MIT" | ||
__copyright__ = "Copyright 2016 Robin Andeer" | ||
|
||
# the user should dictate what happens when a logging event occurs | ||
logging.getLogger(__name__).addHandler(logging.NullHandler()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from .base import root | ||
from .calculate import calculate | ||
from .sex import sex | ||
from .load import link, load | ||
from .sambamba import sambamba | ||
from .db import db_cmd | ||
from .init import init | ||
from .load import link, load | ||
from .sambamba import sambamba | ||
from .sex import sex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.