Skip to content

Commit

Permalink
merge the .flake8 config file to the pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Dec 7, 2024
1 parent d54c79e commit 8955f6c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
5 changes: 0 additions & 5 deletions .flake8

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ repos:
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies: [Flake8-pyproject]
name: "[py - check] flake8"
# language_version: python3.9
exclude: ^(examples/|tests/)

#- repo: https://github.com/psf/black
Expand Down
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ dev = [
"pre-commit-hooks >=4.6.0",
"pytest >=8.2.2",
"pytest-cov >=5.0.0",
"reorder-python-imports >=3.13.0"
"reorder-python-imports >=3.13.0",
"flake8-pyproject >=1.2.3"
]
viz = ["cleopatra>=0.5.1"]

Expand Down Expand Up @@ -81,6 +82,13 @@ repository = "https://github.com/Serapieum-of-alex/pyramids"
documentation = "https://pyramids-gis.readthedocs.io/"
Changelog = "https://github.com/Serapieum-of-alex/pyramids/HISTORY.rst"

[tool.flake8]
ignore = "E203, E266, E501, W503, E722, C901, E741, E731"
max-line-length = 88
max-complexity = 18
select = "B,C,E,F,W,T4"


[build-system]
requires = [
"setuptools>=61",
Expand Down

0 comments on commit 8955f6c

Please sign in to comment.