Skip to content

Commit

Permalink
ci: shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Dec 30, 2021
1 parent d56fc42 commit 9a48e67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ repos:
# https://github.com/pre-commit-ci/issues/issues/47
- id: local-nitpick
name: "nitpick fix (auto fixing files, local hook)"
entry: python -m nitpick fix
# entry: poetry run nitpick fix
# FIXME:
entry: ./local-nitpick.sh
language: system
always_run: true
pass_filenames: false
stages: [commit]
verbose: true
- id: generate-docs
name: Generate ReST documentation from docstrings and TOML
entry: poetry run python3 docs/generate_rst.py
Expand Down
5 changes: 5 additions & 0 deletions local-nitpick.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -x
export PYTHONPATH=.
python -m nitpick fix
#poetry run nitpick fix

0 comments on commit 9a48e67

Please sign in to comment.