Skip to content

Commit

Permalink
Add miss hit to linter, add configuration (#155)
Browse files Browse the repository at this point in the history
* Add miss hit to linter, add configuration

* Add "operator_after_continuation" to suppressed rules
  • Loading branch information
BSchilperoort committed Apr 11, 2023
1 parent 5d4c2f9 commit 978f17b
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check code style

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
style:
name: MISS_HIT checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Python info
shell: bash -l {0}
run: |
which python3
python3 --version
- name: Upgrade pip and install miss-hit
run: |
python3 -m pip install --upgrade pip miss-hit
- name: Check for linter issues
run: mh_lint src/ --brief
- name: Check style against standards
run: mh_style src/ --brief
6 changes: 6 additions & 0 deletions miss_hit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
line_length: 1000
suppress_rule: "copyright_notice"
suppress_rule: "naming_functions"
suppress_rule: "naming_parameters"
suppress_rule: "naming_scripts"
suppress_rule: "operator_after_continuation"

0 comments on commit 978f17b

Please sign in to comment.