forked from OSGeo/gdal
-
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.
- Loading branch information
Showing
8 changed files
with
66 additions
and
82 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,21 @@ | ||
[flake8] | ||
max_line_length = 88 | ||
ignore = | ||
C408 # Unnecessary dict/list/tuple call - rewrite as a literal | ||
E203 # whitespace before ':' - doesn't work well with black | ||
E225 # missing whitespace around operator - let black worry about that | ||
E262 # inline comment should start with '# ' | ||
E265 # block comment should start with '# ' | ||
E266 # too many leading '#' for block comment | ||
E302 # expected 2 blank lines, found 1 | ||
E402 # module level import not at top of file | ||
E501 # line too long - let black handle that | ||
E711 # comparison to None should be | ||
E712 # comparison to False/True should be | ||
E741 # ambiguous variable name | ||
F405 # may be undefined, or defined from star imports | ||
W291 # trailing | ||
W503 # line break occurred before a binary operator - let black worry about that | ||
W504 # line break occurred adter a binary operator - let black worry about that | ||
per-file-ignores = | ||
.cmake-format.py:F821 |
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 |
---|---|---|
|
@@ -63,22 +63,12 @@ jobs: | |
- name: Shellcheck | ||
run: shellcheck -e SC2086,SC2046,SC2164,SC2054 $(find . -name '*.sh' -a -not -name ltmain.sh -a -not -wholename "./autotest/*" -a -not -wholename "./.github/*") | ||
|
||
flake8: | ||
linting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Requirements | ||
run: | | ||
sudo apt install python3-pip | ||
sudo pip3 install flake8 | ||
- name: Run flake8 | ||
run: | | ||
export FLAKE8="flake8 --config autotest/setup.cfg" | ||
$FLAKE8 autotest | ||
$FLAKE8 swig/python/gdal-utils/ | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: pre-commit/[email protected] | ||
|
||
doxygen: | ||
runs-on: ubuntu-18.04 | ||
|
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 @@ | ||
[settings] | ||
known_first_party=osgeo,osgeo_utils | ||
profile=black |
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,29 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
exclude: > | ||
(?x)^( | ||
swig/python/osgeo/| | ||
autotest/ogr/data/ | ||
) | ||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
exclude: > | ||
(?x)^( | ||
swig/python/osgeo/| | ||
autotest/ogr/data/ | ||
) | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
exclude: > | ||
(?x)^( | ||
swig/python/osgeo/| | ||
examples/| | ||
autotest/ogr/data/ | ||
) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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