-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverting to individual configuration files as per discussion
- Loading branch information
1 parent
6c3619d
commit 83a5936
Showing
7 changed files
with
59 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[coverage:run] | ||
# needed to not have absolute path in coverage.xml | ||
relative_files = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[mypy] | ||
mypy_path = src | ||
packages= antares | ||
disallow_untyped_defs = true | ||
disallow_untyped_calls = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[pytest] | ||
pythonpath = src | ||
testpaths = tests | ||
log_cli = true | ||
junit_family=xunit2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
line-length = 120 | ||
|
||
[lint] | ||
## E4, E7, E9 and F are the default configuration of ruff, "I" is added to handle imports | ||
select = ["E4", "E7", "E9", "F", "I"] | ||
|
||
[lint.isort] | ||
## Use a single line between direct import and from import. | ||
lines-between-types = 1 | ||
section-order = [ | ||
"testing", | ||
"future", | ||
"standard-library", | ||
"third-party", | ||
"first-party", | ||
"local-folder", | ||
] | ||
|
||
[lint.isort.sections] | ||
testing = ["pytest*", "*mock*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[tox] | ||
env_list = | ||
py3.{9,10,11,12}-test | ||
lint | ||
|
||
[testenv] | ||
deps = | ||
-r requirements-dev.txt | ||
|
||
[testenv:py3.{9,10,11,12}-test] | ||
description = run the tests with pytest | ||
commands = | ||
pytest tests/antares {posargs} | ||
|
||
[testenv:lint] | ||
description = linting with ruff | ||
extras = lint | ||
commands = | ||
python scripts/license_checker_and_adder.py --path=src --action=fix | ||
python scripts/license_checker_and_adder.py --path=tests --action=fix | ||
ruff check --fix src/ tests/ {posargs} | ||
ruff format src/ tests/ {posargs} | ||
mypy {posargs} | ||
|