Skip to content

Commit

Permalink
Define dev tools settings in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 7, 2024
1 parent 44c806c commit d5cbdfe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
hooks:
- id: ruff
name: ruff
entry: ruff check --extend-select I --fix --exit-non-zero-on-fix --show-fixes
entry: ruff check --fix --exit-non-zero-on-fix --show-fixes
language: system
types: [python]
require_serial: true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typecheck: ## Typecheck all source files

.PHONY: lint
lint: ## Lint all source files
ruff check --extend-select I main.py
ruff check main.py

.PHONY: docker-image
docker-build: # Build Docker image
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.ruff.lint]
extend-select = [
"I",
]

[tool.mypy]
ignore_missing_imports = false
disallow_untyped_defs = true

0 comments on commit d5cbdfe

Please sign in to comment.