Skip to content

Commit

Permalink
Ignore old file style.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHambley committed Jul 10, 2024
1 parent 61b7646 commit 8c914bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Documentation/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
html_static_path = ['_static']


# Don't sort module contents alphabetically, we want to order them in a helpful way for the user to read.
# Don't sort module contents alphabetically, we want to order them in a
# helpful way for the user to read.
autodoc_member_order = 'bysource'


Expand Down
12 changes: 6 additions & 6 deletions tests-old/unit-tests/tasks/c_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ def test_run(self, tmp_path):
More unrelated text
#include <another_system_include.h>
'''))
test_artifact = Artifact(test_file,
CSource,
HeadersAnalysed)
test_artifact = Artifact(test_file, # noqa: F821
CSource, # noqa: F821
HeadersAnalysed) # noqa: F821
test_artifact.add_dependency('foo')

# Run the Injector
injector = CPragmaInjector(workspace)
injector = CPragmaInjector(workspace) # noqa: F821
artifacts_out = injector.run([test_artifact])

assert len(artifacts_out) == 1
assert artifacts_out[0].location == workspace / 'test.c'
assert artifacts_out[0].filetype is CSource
assert artifacts_out[0].state is Modified
assert artifacts_out[0].filetype is CSource # noqa: F821
assert artifacts_out[0].state is Modified # noqa: F821
assert artifacts_out[0].depends_on == ['foo']
assert artifacts_out[0].defines == []

Expand Down

0 comments on commit 8c914bd

Please sign in to comment.