Skip to content

Commit

Permalink
build: deixa os scripts de qa compatíveis com as novas versões do bla…
Browse files Browse the repository at this point in the history
…ck e do ruff
  • Loading branch information
kelsoncm committed Oct 14, 2024
1 parent ce8114c commit 3e749e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ line-length = 120
# "F403",
# ]
target-version = "py311"
show-source = true
# show-source = true
show-fixes = true
fix = true

Expand All @@ -25,12 +25,12 @@ max-doc-length = 120
convention = "google"

[tool.black]
include_trailing_comma = true
use_parentheses = true
ensure_newline_before_comments = true
# include_trailing_comma = true
# use_parentheses = true
# ensure_newline_before_comments = true
line_length = 120
multi_line_output = 3
force_grid_wrap = 0
# multi_line_output = 3
# force_grid_wrap = 0

# [tool.ruff.per-file-ignores]
# "path/to/file.py" = ["E402"]
Expand Down
2 changes: 1 addition & 1 deletion qa-docker.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
docker build -t py-competencias .

docker run -it --rm -v `pwd`:/app py-competencias bash -c 'ruff .'
docker run -it --rm -v `pwd`:/app py-competencias bash -c 'ruff check .'

docker run -it --rm -v `pwd`:/app py-competencias bash -c 'black .'

Expand Down
2 changes: 1 addition & 1 deletion qa.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ruff .
ruff check .
black .
python -m pytest --cov-report=xml --cov-report=html --cov-report=lcov --cov=competencias -s $@

0 comments on commit 3e749e3

Please sign in to comment.