-
Notifications
You must be signed in to change notification settings - Fork 7
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 #6 from soda-inria/package4
Package4
- Loading branch information
Showing
21 changed files
with
447 additions
and
292 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,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
ignore = E203, E402, E265, F403, W503, W504, E731 | ||
exclude = .git, venv*, docs, build | ||
per-file-ignores = **/__init__.py:F401 |
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 |
---|---|---|
@@ -1,183 +1,96 @@ | ||
name: style | ||
|
||
|
||
|
||
on: | ||
|
||
push: | ||
|
||
branches: [main, develop] | ||
|
||
pull_request: | ||
|
||
branches: [main, develop] | ||
|
||
|
||
|
||
jobs: | ||
|
||
flake8: | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
|
||
matrix: | ||
|
||
os: [ubuntu-latest] | ||
|
||
python: [3.8] | ||
python: [3.10, 3.11] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
|
||
uses: actions/setup-python@v1 | ||
|
||
with: | ||
|
||
python-version: ${{ matrix.python }} | ||
|
||
architecture: x64 | ||
|
||
- name: Run flake8 | ||
|
||
run: | | ||
pip install flake8 | ||
flake8 --version | ||
flake8 | ||
flake8 carte/carte_ai | ||
isort: | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
|
||
matrix: | ||
|
||
os: [ubuntu-latest] | ||
|
||
python: [3.8] | ||
python: [3.10, 3.11] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
|
||
uses: actions/setup-python@v1 | ||
|
||
with: | ||
|
||
python-version: ${{ matrix.python }} | ||
|
||
architecture: x64 | ||
|
||
- name: Run isort | ||
|
||
run: | | ||
pip install isort | ||
isort --version | ||
isort . | ||
isort carte/carte_ai | ||
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then exit 1; else echo "All clear"; fi | ||
mypy: | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
|
||
matrix: | ||
|
||
os: [ubuntu-latest] | ||
|
||
python: [3.8] | ||
python: [3.10, 3.11] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
|
||
uses: actions/setup-python@v1 | ||
|
||
with: | ||
|
||
python-version: ${{ matrix.python }} | ||
|
||
architecture: x64 | ||
|
||
- name: Cache python modules | ||
|
||
uses: actions/cache@v2 | ||
|
||
with: | ||
|
||
path: ~/.cache/pip | ||
|
||
key: ${{ runner.os }}-python-${{ matrix.python }}-${{ hashFiles('pyproject.toml') }} | ||
|
||
- name: Install dependencies | ||
|
||
run: | | ||
pip install mypy | ||
- name: Run mypy | ||
|
||
run: | | ||
mypy --version | ||
mypy | ||
mypy carte/carte_ai | ||
black: | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
|
||
matrix: | ||
|
||
os: [ubuntu-latest] | ||
|
||
python: [3.8] | ||
python: [3.10, 3.11] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
|
||
uses: actions/setup-python@v2 | ||
|
||
with: | ||
|
||
python-version: ${{ matrix.python }} | ||
|
||
architecture: x64 | ||
|
||
- name: Run black | ||
|
||
run: | | ||
pip install black | ||
black --version | ||
black --check --diff . | ||
black --check --diff carte/carte_ai |
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.