-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from guilieb/feature/qa-improvements
Update and fix issues raised by Python QA tools
- Loading branch information
Showing
34 changed files
with
268 additions
and
194 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,28 @@ | ||
[flake8] | ||
extend-ignore = | ||
# Line too long | ||
E501 | ||
# Whitespace issues | ||
D2 | ||
# Quote issues | ||
D3 | ||
# Docstring Content Issues | ||
D4 | ||
# Missing docstring in public module | ||
D100 | ||
# Missing docstring in public package | ||
D104 | ||
# Missing docstring in magic method | ||
D105 | ||
# Missing docstring in public nested class | ||
D106 | ||
# Missing docstring in __init__ | ||
D107 | ||
# Line break occurred before a binary operator | ||
W503 | ||
# Whitespace before ':' | ||
E203 | ||
extend-exclude = | ||
tests/**, | ||
docs/** | ||
max-line-length = 119 |
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 |
---|---|---|
|
@@ -47,4 +47,3 @@ Please write the debug information inside <code>```</code> quotes in order to pr | |
|
||
``` | ||
``` | ||
|
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 |
---|---|---|
|
@@ -5,11 +5,23 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: psf/black@stable | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
- name: Run black | ||
uses: psf/black@stable | ||
with: | ||
src: "./melusine" | ||
|
||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
test: | ||
name: Test | ||
needs: lint | ||
|
@@ -18,7 +30,7 @@ jobs: | |
fail-fast: false | ||
max-parallel: 2 | ||
matrix: | ||
python-version: ["3.8", "3.10", "3.12"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3 | ||
|
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 |
---|---|---|
|
@@ -107,3 +107,6 @@ dmypy.json | |
|
||
# Pytest-env | ||
pytest.ini | ||
|
||
# IDEA/Jetbrains | ||
.idea |
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
Empty file.
Empty file.
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
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
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
Oops, something went wrong.