Skip to content

Commit

Permalink
feat(lint): add config for common linters
Browse files Browse the repository at this point in the history
  • Loading branch information
bouttier authored and jacquesfize committed Sep 30, 2024
1 parent 6acc775 commit bf71e1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ exclude ='''
)/
)
'''

[tool.isort]
profile = "black"

[tool.pylint.format]
max-line-length = "100"
6 changes: 6 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ deps =
dev: -e git+file:{toxinidir}/backend/dependencies/Utils-Flask-SQLAlchemy-Geo#egg=utils-flask-sqlalchemy-geo
commands =
pytest -s --verbose {envsitepackagesdir}/geonature/tests

# Sadly, pycodestyle does not support pyproject.toml, and the maintainer doesn't even respond…
# https://github.com/PyCQA/pycodestyle/issues/1226
[pycodestyle]
max-line-length = 100
ignore = E203,E701 # to complies with black

0 comments on commit bf71e1c

Please sign in to comment.