Files
neutron/neutron/objects
Brian Haley 27a98b5c62 pyupgrade changes for Python3.10+
As discussed at the Flamingo PTG meeting, run an automated
upgrade tool to make code python 3.10+ compliant.

Result of running:

$ pyupgrade --py310-plus $(git ls-files | grep ".py$")

Fixed PEP8 errors introduced by pyupgrade by running:

$ autopep8 --select=E127,E128,E501 --max-line-length 79 -r \
--in-place neutron

Also did manual updates as necessary to fix other errors
and warnings after above commands.

Bumped versions of checkers - pylint, bandit and mypy to
more recent versions, which required disabling a new
warning, too-many-positional-arguments.

Change-Id: Ic6908af2c331e3ea6c50f1a8a8e261db41572645
2025-05-21 17:11:13 +01:00
..
2025-05-21 17:11:13 +01:00
2024-10-25 14:32:16 -04:00
2024-10-25 14:32:16 -04:00
2025-05-21 17:11:13 +01:00
2024-10-25 14:32:16 -04:00
2024-10-25 14:32:16 -04:00
2024-10-25 14:32:16 -04:00
2024-10-25 14:32:16 -04:00
2024-10-25 14:32:16 -04:00
2024-11-15 11:44:27 -05:00
2024-10-25 14:32:16 -04:00
2024-10-25 14:32:16 -04:00
2024-10-01 11:18:46 -04:00
2024-10-25 14:32:16 -04:00
2021-09-15 09:19:26 +00:00
2024-10-25 14:32:16 -04:00
2021-09-15 09:19:26 +00:00
2024-11-05 17:12:22 -05:00

Neutron Objects

Directory

This directory is designed to contain all modules which have objects definitions shipped with core Neutron. The files and directories located inside of this directory should follow the guidelines below.

Structure

The Neutron objects tree should have the following structure:

  • The expected directory structure is flat, except for the ML2 plugins. All ML2 plugin objects should fall under the plugins subdirectory (i.e. plugins/ml2/gre_allocation).
  • Module names should use singular forms for nouns (network.py, not networks.py).