Skip to content

Commit

Permalink
Merge pull request #116 from sco1/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sco1 committed Jun 14, 2021
2 parents 2d3aa36 + adaf723 commit 5a8f796
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 34 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint_test.yml
@@ -1,10 +1,12 @@
name: lint-and-test

on:
pull_request:
push:
branches:
- main
tags-ignore:
- "**" # Skip re-linting when tags are added
pull_request:

jobs:
lint:
Expand Down
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -4,15 +4,15 @@ ci:
repos:
- repo: local
hooks:
- id: flake8
- id: flake8
name: Flake8
description: This hook runs flake8 within our project's poetry environment.
entry: poetry run flake8
language: python
types: [python]
require_serial: true
- repo: https://github.com/psf/black
rev: 21.5b2
rev: 21.6b0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand All @@ -24,6 +24,7 @@ repos:
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.8.0
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
56 changes: 28 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Expand Up @@ -45,7 +45,7 @@ flake8-fixme = "^1.1"
flake8-formatter-junit-xml = "^0.0"
flake8-import-order = "^0.18"
flake8-tidy-imports = "^4.1"
mypy = "^0.901"
mypy = "^0.902"
pep8-naming = "^0.11"
pre-commit = "^2.7"
pytest = "^6.0"
Expand All @@ -62,6 +62,7 @@ types-typed-ast = "^1.4"
line-length = 100

[tool.mypy]
exclude = "^testing/"
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
Expand Down

0 comments on commit 5a8f796

Please sign in to comment.