Skip to content

Commit

Permalink
Add flake8-copyright. (facebookresearch#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisenp authored Jul 10, 2023
1 parent 49fd80f commit abc8201
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ types-mock>=4.0.8
Sphinx==5.0.2
sphinx-rtd-theme==1.0.0
hydra-core
flake8-copyright>=0.2.4
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ per-file-ignores =
# E261,E241,E121,E131,E201,E202: formatting options, to avoid having to
# re-format explicit sparse matrices used for a small example
tests/theseus_tests/extlib/test_baspacho_simple.py:E261,E241,E121,E131,E201,E202
copyright-check = True
select = E,F,W,C
copyright-regexp=Copyright \(c\) Meta Platforms, Inc. and affiliates.
exclude = third_party

[mypy]
python_version = 3.10
Expand Down
4 changes: 4 additions & 0 deletions theseus/utils/examples/tactile_pose_estimation/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .misc import TactilePushingDataset, visualize_tactile_push2d
from .models import (
TactileMeasModel,
Expand Down
4 changes: 4 additions & 0 deletions theseus/utils/examples/tactile_pose_estimation/misc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Dict, List, Optional, Tuple

import matplotlib.patches as mpatches
Expand Down
4 changes: 4 additions & 0 deletions theseus/utils/examples/tactile_pose_estimation/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import collections
import pathlib
from typing import Dict, List, Optional, Tuple, cast
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Dict, List, Optional, Tuple, Type

import numpy as np
Expand Down

0 comments on commit abc8201

Please sign in to comment.