Skip to content

Commit

Permalink
final fmt?
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Jul 30, 2024
1 parent 3bedf75 commit 2277d09
Showing 1 changed file with 34 additions and 35 deletions.
69 changes: 34 additions & 35 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "{{ cookiecutter.project_name }}"
version = "0.0.1"
description = "{{ cookiecutter.project_description }}"
readme = "README.md"
license = {file = "LICENSE"}
license = { file = "LICENSE" }
maintainers = [
{ name = "{{ cookiecutter.author_full_name }}", email = "{{ cookiecutter.author_email }}" },
]
Expand All @@ -34,22 +34,21 @@ optional-dependencies.dev = [
]
optional-dependencies.doc = [
"docutils>=0.8,!=0.18.*,!=0.19.*",
"ipykernel",
"ipython",
"myst-nb>=1.1.0",
"pandas",
"setuptools", # Until pybtex >0.23.0 releases: https://bitbucket.org/pybtex-devs/pybtex/issues/169/
"sphinx>=4",
"sphinx-autodoc-typehints",
"sphinx-book-theme>=1.0.0",
"myst-nb>=1.1.0",
"sphinx-copybutton",
"sphinxcontrib-bibtex>=1.0.0",
"setuptools", # Until pybtex >0.23.0 releases: https://bitbucket.org/pybtex-devs/pybtex/issues/169/
"sphinx-autodoc-typehints",
"sphinxext-opengraph",
# For notebooks
"ipykernel",
"ipython",
"sphinx-copybutton",
"pandas",
]
optional-dependencies.test = [
"pytest",
"coverage",
"pytest",
]
urls.Documentation = "https://{{ cookiecutter.project_name }}.readthedocs.io/"
urls.Home-page = "{{ cookiecutter.project_repo }}"
Expand All @@ -73,44 +72,44 @@ extend-include = [
format.docstring-code-format = true

lint.select = [
"F", # Errors detected by Pyflakes
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # Error detected by Pycodestyle
"W", # Warning detected by Pycodestyle
"F", # Errors detected by Pyflakes
"I", # isort
"D", # pydocstyle
"B", # flake8-bugbear
"RUF100", # Report unused noqa directives
"TID", # flake8-tidy-imports
"C4", # flake8-comprehensions
"BLE", # flake8-blind-except
"UP", # pyupgrade
"RUF100", # Report unused noqa directives
"W", # Warning detected by Pycodestyle
]
lint.ignore = [
# line too long -> we accept long comment lines; formatter gets rid of long code lines
"E501",
# Do not assign a lambda expression, use a def -> lambda expression assignments are convenient
"E731",
# allow I, O, l as variable names -> I is the identity matrix
"E741",
# Missing docstring in public package
"D104",
# Missing docstring in public module
"D100",
# Missing docstring in __init__
"D107",
# Errors from function calls in argument defaults. These are fine when the result is immutable.
"B008",
# Missing docstring in public module
"D100",
# Missing docstring in public package
"D104",
# __magic__ methods are often self-explanatory, allow missing docstrings
"D105",
# Missing docstring in __init__
"D107",
# <>: Disable one in each pair of mutually incompatible rules
# <> We don’t want a blank line before a class docstring
"D203",
# <> We want docstrings to start immediately after the opening triple quote
"D213",
# first line should end with a period [Bug: doesn't work with single-line docstrings]
"D400",
# First line should be in imperative mood; try rephrasing
"D401",
## Disable one in each pair of mutually incompatible rules
# We don’t want a blank line before a class docstring
"D203",
# We want docstrings to start immediately after the opening triple quote
"D213",
# line too long -> we accept long comment lines; formatter gets rid of long code lines
"E501",
# Do not assign a lambda expression, use a def -> lambda expression assignments are convenient
"E731",
# allow I, O, l as variable names -> I is the identity matrix
"E741",
]
lint.per-file-ignores."*/__init__.py" = [
"F401",
Expand All @@ -127,7 +126,7 @@ lint.pydocstyle.convention = "numpy"
testpaths = [ "tests" ]
xfail_strict = true
addopts = [
"--import-mode=importlib", # allow using test files with same name
"--import-mode=importlib", # allow using test files with same name
]

[tool.coverage.run]
Expand Down

0 comments on commit 2277d09

Please sign in to comment.