Skip to content

Commit

Permalink
Addition of xenon
Browse files Browse the repository at this point in the history
This checks code complexity which is a useful metric for code quality and maintainability.  I've set everything to A which is the highest tier, reason being is that we should aim for the least complex code as the increase of complexity affects maintainability.
  • Loading branch information
GMW99 committed Jan 26, 2024
1 parent 4d3a3f5 commit a8ace5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ repos:
- id: flake8
args: ['--max-line-length=88', '--select=W291,W292,W293,F401']
language_version: python3

- repo: https://github.com/rubik/xenon
rev: v0.9.0
hooks:
- id: xenon
args: [ --max-absolute A, --max-modules A, --max-average A ]

0 comments on commit a8ace5b

Please sign in to comment.