Skip to content

Commit 33685eb

Browse files
kanekoshA-CGray
andauthored
Switch to Ruff linting and formatting (#466)
* migrated local flake8 to ruff.toml * add extend to ruff local configu * whitespace fixes * trigger checks * Update ruff.toml configuration paths * Update gitignore * Automatic formatting changes * Non-automatic fixes * trigger build * Trigger Build * Formatting --------- Co-authored-by: Alasdair Gray <alachris@umich.edu>
1 parent fc1cb4f commit 33685eb

81 files changed

Lines changed: 2423 additions & 2428 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.flake8

Lines changed: 0 additions & 8 deletions
This file was deleted.

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Ignore OpenMDAO reports folders
22
**/reports/
33

4+
# pre-commit config file that should be manually copied from the mdolab/.github repo.
5+
.pre-commit-config.yaml
6+
47
*.pyc
58
*.py~
69
*.db

.readthedocs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ build:
1111
tools:
1212
python: "3.11"
1313

14-
sphinx:
15-
configuration: openaerostruct/docs/conf.py
14+
1615

1716
python:
1817
install:

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ preferred-citation:
2828
number: "4"
2929
pages: "1815--1827"
3030
date: "2018-04"
31-
doi: "10.1007/s00158-018-1912-8"
31+
doi: "10.1007/s00158-018-1912-8"

openaerostruct/aerodynamics/aero_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def initialize(self):
2323
"compressible",
2424
types=bool,
2525
default=False,
26-
desc="Turns on compressibility correction for moderate Mach number " "flows. Defaults to False.",
26+
desc="Turns on compressibility correction for moderate Mach number flows. Defaults to False.",
2727
)
2828

2929
def setup(self):

openaerostruct/aerodynamics/compressible_states.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Class definition for CompressibleVLMStates.
33
"""
4+
45
import openmdao.api as om
56

67
from openaerostruct.aerodynamics.get_vectors import GetVectors

openaerostruct/aerodynamics/geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class VLMGeometry(om.ExplicitComponent):
1111
Some of the quantities, like `normals`, are used to compute the RHS
1212
of the AIC linear system.
1313
14-
parameters
14+
Parameters
1515
----------
1616
def_mesh[nx, ny, 3] : numpy array
1717
Array defining the nodal coordinates of the lifting surface.

openaerostruct/aerodynamics/lift_drag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class LiftDrag(om.ExplicitComponent):
88
Calculate total lift and drag in force units based on section forces.
99
This is for one given lifting surface.
1010
11-
parameters
11+
Parameters
1212
----------
1313
sec_forces[nx-1, ny-1, 3] : numpy array
1414
Contains the sectional forces acting on each panel.

openaerostruct/aerodynamics/mesh_point_forces.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Class definition for the MeshPointForces component.
33
"""
4+
45
import numpy as np
56
import openmdao.api as om
67

openaerostruct/aerodynamics/total_drag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class TotalDrag(om.ExplicitComponent):
55
"""Calculate total drag in force units.
66
7-
parameters
7+
Parameters
88
----------
99
CDi : float
1010
Induced coefficient of drag (CD) for the lifting surface.

0 commit comments

Comments
 (0)