Skip to content

Commit

Permalink
feat: integrate .flake8 in pyproject.toml (superlinear-ai#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber authored Oct 3, 2022
1 parent afd20ca commit d4f0ce7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
14 changes: 0 additions & 14 deletions {{ cookiecutter.__package_name_kebab_case }}/.flake8

This file was deleted.

12 changes: 12 additions & 0 deletions {{ cookiecutter.__package_name_kebab_case }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ flake8-mutable = "^1.2.0"
{%- if cookiecutter.development_environment == "strict" %}
flake8-print = "^5.0.0"
{%- endif %}
Flake8-pyproject = "^1.1.0"
flake8-pytest-style = "^1.6.0"
flake8-rst-docstrings = "^0.2.6"
flake8-tidy-imports = "^4.8.0"
Expand Down Expand Up @@ -143,6 +144,17 @@ source = ["src"]
[tool.coverage.xml]
output = "reports/coverage.xml"

# https://flake8.pycqa.org/en/latest/user/options.html#options-and-their-descriptions
# https://github.com/terrencepreilly/darglint#flake8
[tool.flake8]
color = "always"
docstring_style = "{{ cookiecutter.docstring_style|lower }}"
doctests = true
ignore = ["DAR103", "E203", "E501", "W503"]
max_line_length = 100
max_complexity = 10
strictness = "{% if cookiecutter.development_environment == 'strict' %}short{% else %}long{% endif %}"

# https://pycqa.github.io/isort/docs/configuration/options.html
[tool.isort]
color_output = true
Expand Down

0 comments on commit d4f0ce7

Please sign in to comment.