Skip to content

Commit

Permalink
Port winddcutil to Python (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaxcell committed Sep 15, 2023
1 parent 7f08f36 commit 6127c3e
Show file tree
Hide file tree
Showing 23 changed files with 1,189 additions and 800 deletions.
521 changes: 160 additions & 361 deletions .gitignore

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
default_stages: [commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=no"]
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 23.9.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.11

- repo: https://github.com/pycqa/flake8
rev: "6.1.0" # pick a git hash / tag to point to
hooks:
- id: flake8
# black-compatible flake-8 config
args: [
# disable layout-related rules as we use 'black' for these:
# - E501: leave line length decisions up to black
# - E127 and E128: extremely pedantic and difficult to get
# right, more a waste of time than an improvement
"--extend-ignore=E501,E128,E127,E203",
]

# Check commit message style.
# this commit-msg hooks needs to be explicitly installed with:
# pre-commit install --hook-type commit-msg
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.8.2
hooks:
- id: commitizen
stages: [commit-msg]

- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
Loading

0 comments on commit 6127c3e

Please sign in to comment.