Skip to content

Commit

Permalink
Exit 1 if linter has violations (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
eirsyl committed May 15, 2024
1 parent e5558a3 commit bb2cebb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion oida/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def main() -> None:
args = parser.parse_args()

if args.command == "lint":
if not run_linter(*args.paths, checks=args.checks):
has_violations = run_linter(*args.paths, checks=args.checks)
if has_violations:
sys.exit(1)
elif args.command == "config":
generate_config(args.project_root)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "oida"
version = "0.2.0"
version = "0.2.1"
description = "Oida is Oda's linter that enforces code style and modularization in our Django projects."
authors = ["Oda <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit bb2cebb

Please sign in to comment.