Skip to content

Commit e8d83ee

Browse files
author
Mauko Quiroga
committed
Fix tasks
1 parent bae9293 commit e8d83ee

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tasks/lint.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ check-syntax-errors: .
99
@$(call print_pass,$@:)
1010

1111
## Run linters to check for syntax and style errors.
12-
check-style: $(shell git ls-files "*.py")
12+
check-style:
1313
@$(call print_help,$@:)
14-
@flake8 $?
14+
@flake8 $(shell git ls-files "*.py")
1515
@$(call print_pass,$@:)
1616

1717
## Run static type checkers for type errors.
18-
check-types: openfisca_core openfisca_web_api
18+
check-types:
1919
@$(call print_help,$@:)
20-
@mypy $?
20+
@mypy src
2121
@$(call print_pass,$@:)
2222

2323
## Run code formatters to correct style errors.
24-
format-style: $(shell git ls-files "*.py")
24+
format-style:
2525
@$(call print_help,$@:)
26-
@autopep8 $?
26+
@autopep8 $(shell find . -name "*.py")
2727
@$(call print_pass,$@:)

tasks/test_code.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test-code: test-core
1515
## Run openfisca-core tests.
1616
test-core: $(shell git ls-files "tests/*.py")
1717
@$(call print_help,$@:)
18-
@PYTEST_ADDOPTS="${PYTEST_ADDOPTS} --cov=openfisca_core ${pytest_args}" \
18+
@PYTEST_ADDOPTS="${PYTEST_ADDOPTS} --cov=src ${pytest_args}" \
1919
openfisca test $? \
2020
${openfisca_args}
2121
@$(call print_pass,$@:)

0 commit comments

Comments
 (0)