2019-04-03 17:17:55 +00:00
|
|
|
[build-system]
|
|
|
|
requires = [
|
|
|
|
"setuptools",
|
|
|
|
"wheel",
|
|
|
|
]
|
2020-02-23 02:45:34 +00:00
|
|
|
|
2021-07-13 06:23:36 +00:00
|
|
|
|
2020-11-13 21:57:46 +00:00
|
|
|
[tool.isort]
|
|
|
|
known_first_party = [
|
2020-12-16 06:09:26 +00:00
|
|
|
"benchmarks",
|
2020-11-13 21:57:46 +00:00
|
|
|
"docs",
|
|
|
|
"pl_examples",
|
|
|
|
"pytorch_lightning",
|
|
|
|
"tests",
|
|
|
|
]
|
2021-02-03 20:21:19 +00:00
|
|
|
profile = "black"
|
2020-11-13 21:57:46 +00:00
|
|
|
line_length = 120
|
2021-01-03 22:13:22 +00:00
|
|
|
force_sort_within_sections = "False"
|
2020-12-16 06:09:26 +00:00
|
|
|
order_by_type = "False"
|
2021-07-13 06:23:36 +00:00
|
|
|
|
|
|
|
|
2021-07-26 11:37:35 +00:00
|
|
|
[tool.black]
|
|
|
|
line-length = 120
|
|
|
|
|
|
|
|
|
2021-07-13 06:23:36 +00:00
|
|
|
[tool.mypy]
|
|
|
|
files = ["pytorch_lightning", "pl_examples", "benchmarks"]
|
|
|
|
disallow_untyped_defs = "True"
|
|
|
|
ignore_missing_imports = "True"
|
|
|
|
show_error_codes = "True"
|
|
|
|
warn_redundant_casts = "True"
|
|
|
|
warn_unused_configs = "True"
|
|
|
|
warn_unused_ignores = "True"
|
|
|
|
allow_redefinition = "True"
|
|
|
|
# disable this rule as the Trainer attributes are defined in the connectors, not in its __init__
|
|
|
|
disable_error_code = "attr-defined"
|
2021-08-26 08:36:21 +00:00
|
|
|
# style choices
|
|
|
|
warn_no_return = "False"
|
2021-07-13 06:23:36 +00:00
|
|
|
|
|
|
|
# TODO: Fix typing for these modules
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = [
|
|
|
|
"pytorch_lightning.callbacks.*",
|
|
|
|
"pytorch_lightning.core.*",
|
|
|
|
"pytorch_lightning.loggers.*",
|
|
|
|
"pytorch_lightning.loops.*",
|
|
|
|
"pytorch_lightning.metrics.*",
|
|
|
|
"pytorch_lightning.overrides.*",
|
|
|
|
"pytorch_lightning.plugins.environments.*",
|
|
|
|
"pytorch_lightning.plugins.training_type.*",
|
|
|
|
"pytorch_lightning.profiler.*",
|
|
|
|
"pytorch_lightning.trainer.*",
|
|
|
|
"pytorch_lightning.distributed.*",
|
|
|
|
"pytorch_lightning.tuner.*",
|
|
|
|
"pytorch_lightning.utilities.*",
|
|
|
|
"pl_examples.*",
|
|
|
|
"benchmarks.*",
|
|
|
|
"tests.helpers.*"
|
|
|
|
]
|
|
|
|
ignore_errors = "True"
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
module = [
|
2021-10-13 18:29:36 +00:00
|
|
|
"pytorch_lightning.callbacks.device_stats_monitor",
|
2021-09-13 09:41:27 +00:00
|
|
|
"pytorch_lightning.callbacks.model_summary",
|
2021-07-13 06:23:36 +00:00
|
|
|
"pytorch_lightning.callbacks.pruning",
|
2021-09-17 10:54:16 +00:00
|
|
|
"pytorch_lightning.callbacks.rich_model_summary",
|
2021-10-18 15:29:51 +00:00
|
|
|
"pytorch_lightning.core.optimizer",
|
2021-09-10 13:18:24 +00:00
|
|
|
"pytorch_lightning.loops.optimization.*",
|
|
|
|
"pytorch_lightning.loops.evaluation_loop",
|
2021-09-15 01:02:19 +00:00
|
|
|
"pytorch_lightning.trainer.connectors.checkpoint_connector",
|
2021-09-06 09:34:40 +00:00
|
|
|
"pytorch_lightning.trainer.connectors.logger_connector.*",
|
2021-09-17 19:13:59 +00:00
|
|
|
"pytorch_lightning.trainer.connectors.signal_connector",
|
2021-09-06 00:20:44 +00:00
|
|
|
"pytorch_lightning.trainer.progress",
|
2021-09-03 14:49:58 +00:00
|
|
|
"pytorch_lightning.tuner.auto_gpu_select",
|
2021-08-26 16:36:22 +00:00
|
|
|
"pytorch_lightning.utilities.apply_func",
|
2021-07-30 16:36:55 +00:00
|
|
|
"pytorch_lightning.utilities.argparse",
|
2021-07-13 06:23:36 +00:00
|
|
|
"pytorch_lightning.utilities.cli",
|
2021-08-03 09:56:28 +00:00
|
|
|
"pytorch_lightning.utilities.cloud_io",
|
2021-07-13 06:23:36 +00:00
|
|
|
"pytorch_lightning.utilities.device_dtype_mixin",
|
|
|
|
"pytorch_lightning.utilities.device_parser",
|
2021-08-05 09:51:09 +00:00
|
|
|
"pytorch_lightning.utilities.distributed",
|
2021-08-06 09:21:09 +00:00
|
|
|
"pytorch_lightning.utilities.memory",
|
2021-09-13 09:41:27 +00:00
|
|
|
"pytorch_lightning.utilities.model_summary",
|
2021-10-06 08:16:44 +00:00
|
|
|
"pytorch_lightning.utilities.parameter_tying",
|
2021-07-13 06:23:36 +00:00
|
|
|
"pytorch_lightning.utilities.parsing",
|
2021-09-23 15:09:48 +00:00
|
|
|
"pytorch_lightning.utilities.seed",
|
2021-08-06 15:01:21 +00:00
|
|
|
"pytorch_lightning.utilities.xla_device",
|
2021-07-13 06:23:36 +00:00
|
|
|
]
|
|
|
|
ignore_errors = "False"
|