mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
Preemptively determine the path of the user configuration file during the construction of the `ConfigFileFinder` object. The user configuration path will always be the same, regardless of when it gets obtained by a run of `flake8`. This isolates the logic of determining the user configuration path into a static helper method to be called to set the `.user_config_file` attribute. The helper method leverages `utils.is_windows()`, instead of reimplementing the check, and decomposes clearly the directory name and the base name to construct the path with a single `return` path. Additionally, this avoids reconstructing the path on demand of obtaining the user configuration file path. |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_application.py | ||
| test_base_formatter.py | ||
| test_checker_manager.py | ||
| test_config_file_finder.py | ||
| test_debug.py | ||
| test_decision_engine.py | ||
| test_exceptions.py | ||
| test_file_checker.py | ||
| test_file_processor.py | ||
| test_filenameonly_formatter.py | ||
| test_get_local_plugins.py | ||
| test_git.py | ||
| test_legacy_api.py | ||
| test_merged_config_parser.py | ||
| test_nothing_formatter.py | ||
| test_option.py | ||
| test_option_manager.py | ||
| test_plugin.py | ||
| test_plugin_manager.py | ||
| test_plugin_type_manager.py | ||
| test_pyflakes_codes.py | ||
| test_setuptools_command.py | ||
| test_statistics.py | ||
| test_style_guide.py | ||
| test_utils.py | ||
| test_violation.py | ||