|
1 | 1 | [build-system] |
2 | 2 | requires = ["setuptools"] |
3 | 3 | build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[tool.ruff] |
| 6 | +indent-width = 4 |
| 7 | +line-length = 88 |
| 8 | +target-version = "py39" |
| 9 | +extend-include = ["*.ipynb"] |
| 10 | + |
| 11 | +lint.select = [ |
| 12 | + "ANN", # flake8-annotations |
| 13 | + "ARG", # flake8-unused-arguments |
| 14 | + "B", # flake8-bugbear |
| 15 | + "C4", # flake8-comprehensions |
| 16 | + "C90", # mccabe |
| 17 | +# "D", # pydocstyle |
| 18 | + "DTZ", # flake8-datetimez |
| 19 | + "E", # pycodestyle |
| 20 | + "EM", # flake8-errmsg |
| 21 | + "ERA", # eradicate |
| 22 | + "F", # Pyflakes |
| 23 | + "I", # isort |
| 24 | + "ICN", # flake8-import-conventions |
| 25 | + "N", # pep8-naming |
| 26 | + "PD", # pandas-vet |
| 27 | + "PGH", # pygrep-hooks |
| 28 | + "PIE", # flake8-pie |
| 29 | + "PL", # Pylint |
| 30 | + "PLC", # Pylint |
| 31 | + "PLE", # Pylint |
| 32 | + "PLR", # Pylint |
| 33 | + "PLW", # Pylint |
| 34 | + "PT", # flake8-pytest-style |
| 35 | + "Q", # flake8-quotes |
| 36 | + "RET", # flake8-return |
| 37 | + "RUF100", # Ruff-specific |
| 38 | + "S", # flake8-bandit |
| 39 | + "SIM", # flake8-simplify |
| 40 | +# "T20", # flake8-print |
| 41 | + "TID", # flake8-tidy-imports |
| 42 | + "UP", # pyupgrade |
| 43 | + "W", # pycodestyle |
| 44 | + "YTT", # flake8-2020 |
| 45 | +] |
| 46 | + |
| 47 | +exclude = [ |
| 48 | + "__init__.py", |
| 49 | + "setup.py", |
| 50 | +] |
| 51 | + |
| 52 | +lint.ignore = [ |
| 53 | + "S301", # pickle |
| 54 | + "S311", # Standard pseudo-random generators |
| 55 | +] |
| 56 | + |
| 57 | +[tool.ruff.lint.pep8-naming] |
| 58 | +extend-ignore-names = [ |
| 59 | + "X", "X1", "X_train", "X_val", "X_test", "X_predict", |
| 60 | +] |
| 61 | + |
| 62 | +[tool.ruff.lint.pydocstyle] |
| 63 | +convention = "numpy" |
| 64 | + |
| 65 | +[tool.ruff.format] |
| 66 | +docstring-code-format = true |
| 67 | +docstring-code-line-length = 80 |
| 68 | + |
| 69 | +[tool.ruff.lint.extend-per-file-ignores] |
| 70 | +"test/**" = ["S101", "PLR2004", "ANN"] |
| 71 | +"python/example_rmux.py" = ["PLR2004"] |
| 72 | +"python/example_maze.py" = ["PLR2004"] |
| 73 | +"python/notebooks/example_cartpole.ipynb" = ["E501", "SIM115"] |
| 74 | +"python/notebooks/example_maze.ipynb" = ["E501", "PLR2004"] |
| 75 | +"python/notebooks/example_regression.ipynb" = ["PLR2004"] |
| 76 | +"python/notebooks/example_rmux.ipynb" = ["PLR2004"] |
| 77 | +"python/notebooks/example_tuning.ipynb" = ["E501", "ANN201"] |
| 78 | + |
| 79 | +[tool.codespell] |
| 80 | +ignore-words-list = [ |
| 81 | + "larg", |
| 82 | +] |
0 commit comments