Skip to content

Commit

Permalink
make isort more stable across environments
Browse files Browse the repository at this point in the history
  • Loading branch information
Swen Wenzel committed Nov 13, 2019
1 parent e1e1807 commit dd530f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
repos:
- repo: local
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
require_serial: true
language: python
name: isort
entry: isort
types: [python]
additional_dependencies:
- "toml>=0.10"
- repo: https://github.com/python/black
rev: 19.3b0
hooks:
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pytest-cov = "^2.8"
flake8 = "^3.7"
#TODO unpin once it's more stable
black = {version = "19.3b0", allows-prereleases = true}
isort = "^4.3"
isort ={version="^4.3", extras = ["pyproject"]}

[tool.black]
line-length = 119
Expand All @@ -64,6 +64,8 @@ include = '\.pyi?$'
line_Length = 119
multi_line_output = 3
include_trailing_comma = true
default_section="THIRDPARTY"
known_first_party = ["esque", "tests"]

[build-system]
#TODO unpin once it's more stable
Expand Down

0 comments on commit dd530f7

Please sign in to comment.