Skip to content

Commit

Permalink
Merge pull request #28 from cgahr/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
cgahr authored Apr 2, 2024
2 parents 0aa390c + d859c61 commit 0d8c7ba
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 58 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ repos:
hooks:
- id: toml-sort-fix
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.6'
rev: 'v0.3.5'
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.7.1'
rev: 'v1.9.0'
hooks:
- id: mypy
exclude: tests
Expand All @@ -29,7 +29,7 @@ repos:
- id: pytest
name: pytest
entry: pytest
language: conda
language: python
pass_filenames: false
always_run: true
fail_fast: true
107 changes: 52 additions & 55 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ Changelog = "https://github.com/cgahr/latexplotlib/blob/main/CHANGES.md"
Homepage = "https://github.com/cgahr/latexplotlib"
Issues = "https://github.com/cgahr/latexplotlib/issues"

[tool.black]
line_length = 88

[tool.coverage.report]
exclude_lines = ["if TYPE_CHECKING:"]

Expand All @@ -58,6 +55,58 @@ source = ["src"]
[tool.isort]
profile = "black"

[tool.lint.ruff]
fix = true
fixable = ["I"]
ignore = [
"ANN101" # missing-type-self
]
select = [
"A",
"ANN",
"ARG",
"B",
"BLE",
"C4",
"C90",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FBT", # unclear if good or not
"G",
"I",
"ICN",
"INP",
"ISC",
"N",
"NPY",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"T10",
"T20",
"TCH",
"TID",
"TRY",
# "D",
"UP",
"W",
"YTT"
]
target-version = "py38"

[tool.mypy]
check_untyped_defs = true
exclude = [
Expand Down Expand Up @@ -93,58 +142,6 @@ testpaths = [
"tests"
]

[tool.ruff]
fix = true
fixable = ["I"]
ignore = [
"ANN101" # missing-type-self
]
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
# "D",
"UP",
"YTT",
"ANN",
"S",
"BLE",
"FBT", # unclear if good or not
"B",
"A",
"C4",
"DTZ",
"T10",
"EM",
"EXE",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"RSE",
"RET",
"SLF",
"SIM",
"TID",
"TCH",
"ARG",
"PTH",
"ERA",
"PGH",
"PL",
"TRY",
"NPY",
"RUF"
]
target-version = "py38"

[tool.ruff.flake8-annotations]
suppress-dummy-args = true

Expand Down

0 comments on commit 0d8c7ba

Please sign in to comment.