-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a835775
commit 8257138
Showing
2 changed files
with
7 additions
and
4 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 |
---|---|---|
|
@@ -5,9 +5,9 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
check_format: | ||
lint: | ||
if: '! github.event.pull_request.draft' | ||
name: Check code formatting | ||
name: Lint code base | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repo | ||
|
@@ -19,7 +19,7 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- name: Check code formatting | ||
- name: Pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
test: | ||
|
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
[mypy] | ||
no_implicit_optional = False | ||
|
||
disable_error_code = var-annotated | ||
|
||
# Turn off mypy for all django migration packages via naming convention. | ||
[mypy-*.migrations.*] | ||
ignore_errors: True | ||
|
||
# Turn off mypy for unit tests | ||
[mypy-*.tests.*] | ||
ignore_errors: True |