-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve quality check and contributing guide #3430
Merged
Merged
Changes from 4 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ce89147
add separate dev tools in specific dependency file
submarcos 0bc87ce
add pre-commit hook and improve doc
submarcos b638b30
fix lint workflow
submarcos bbe5f51
improve pre-commit
submarcos 7ebfdfd
better split dev dependencies
submarcos fb273ee
split doc to CONTRIBUTING section
submarcos ca919eb
organize doc
submarcos 16308e4
fix doc format
submarcos 1e3c427
improve requirmeents and pre-commit
submarcos 95565dc
fix user in dockerfile for git hook and pip-tools
submarcos 7808209
fix rights in docker image
submarcos 7329579
Merge pull request #3431 from GeotrekCE/better_split_dev_dependencies
submarcos 14b9d02
revert coverage package version
submarcos ca05ea1
check dependency graph in CI
submarcos 27d6366
fail doc generation on warning
submarcos 3c4de4a
update CI machine on lint workflow
submarcos 0d82260
add changelog
submarcos 60f3ec3
Merge branch 'master' into improve_quality
submarcos a6c3a43
fix dependency graph
submarcos 4b23d0d
add make entries
submarcos 8ac0ee9
add make shortcuts in dev documentation
submarcos 708d824
fix doc with geotrek.localhost as default value
submarcos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,19 @@ | ||
#!/bin/bash | ||
|
||
function dockercompose { | ||
# use docker-compose then fallback to new docker compose | ||
docker-compose "$@" | ||
docker compose "$@" | ||
} | ||
|
||
echo "run Flake8..." | ||
|
||
dockercompose run -T --rm web flake8 geotrek | ||
status=$? | ||
|
||
if test $status -eq 1 | ||
then | ||
exit $status | ||
else | ||
echo "Flake8 check is ok..." | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pip-tools | ||
flake8 |
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,32 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.8 | ||
# by the following command: | ||
# | ||
# pip-compile requirements-dev.in | ||
# | ||
build==0.10.0 | ||
# via pip-tools | ||
click==8.1.3 | ||
# via pip-tools | ||
flake8==6.0.0 | ||
# via -r requirements-dev.in | ||
mccabe==0.7.0 | ||
# via flake8 | ||
packaging==23.0 | ||
# via build | ||
pip-tools==6.12.1 | ||
# via -r requirements-dev.in | ||
pycodestyle==2.10.0 | ||
# via flake8 | ||
pyflakes==3.0.1 | ||
# via flake8 | ||
pyproject-hooks==1.0.0 | ||
# via build | ||
tomli==2.0.1 | ||
# via build | ||
wheel==0.38.4 | ||
# via pip-tools | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
# pip | ||
# setuptools |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about checking changed files only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't check changed files, we check all files as actually