-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to pre-commit for linting+formatting (#415)
- Loading branch information
1 parent
3eb6b44
commit 4416782
Showing
8 changed files
with
424 additions
and
788 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 |
---|---|---|
|
@@ -39,12 +39,8 @@ jobs: | |
- name: Set Up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.9.7" # 3.9.8 crashes | ||
- name: Install Nox Dependencies | ||
run: | | ||
python -m pip install poetry nox nox-poetry pyparsing==3.0.4 | ||
- name: Run Lint | ||
run: nox --non-interactive --session lint -- --full-trace | ||
python-version: "3.9" | ||
- uses: pre-commit/[email protected] | ||
|
||
linkcheck: | ||
name: Docs-Linkcheck | ||
|
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,17 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 21.9b0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- pep8-naming | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.9.3 | ||
hooks: | ||
- id: isort |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ list: | |
|
||
.PHONY: lint | ||
lint: | ||
poetry run flake8 ${SRC_FILES} | ||
pre-commit run --all-files | ||
|
||
.PHONY: test | ||
test: | ||
|
Oops, something went wrong.