Skip to content

Commit

Permalink
chore(*): reformat codebase using pre-commit (#140)
Browse files Browse the repository at this point in the history
* chore(*): reformat codebase using pre-commit

* chore(ci): fix flake8 exclusion after reformat, add sonar exclusion for tests

* fix(ci): fix nosec issue caused by reformat
  • Loading branch information
m3mike authored Feb 8, 2022
1 parent 3ddf69a commit 12cd95a
Show file tree
Hide file tree
Showing 31 changed files with 836 additions and 666 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
exclude: '^.*\b(migrations)\b.*$|\.min\.js$|\.min\.css$|\.min\.*\b|\.svg|^tests/data|^data/|static/js'

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
Expand Down
2 changes: 2 additions & 0 deletions .sonarcloud.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# sonar settings
sonar.exclusions=tests/
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ limitations under the License.

This project makes use of ATT&CK®

ATT&CK® Terms of Use - https://attack.mitre.org/resources/terms-of-use/
ATT&CK® Terms of Use - https://attack.mitre.org/resources/terms-of-use/
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- "8000:8000"
environment:
- DATA_DIRECTORY=/data
- ALLOWED_HOSTS=["example_host1", "localhost"]
- ALLOWED_HOSTS=["example_host1", "localhost"]
- SECRET_KEY=Ij0WGee73k9OESwqddmSKCx6SY9aJ_7bDojs485Z6ec # your secret key here
- DEBUG=True
- DJANGO_SUPERUSER_USERNAME=djangoSuperuser
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ exclude = '''
| venv
| migrations
| node_modules
| .tox
| .git
)/
'''

Expand Down
2 changes: 1 addition & 1 deletion src/archive/pipeline/regex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@
- name: sha512
code: sha512_hash
regex: |
\b[a-fA-f0-9]{128}\b
\b[a-fA-f0-9]{128}\b
Loading

0 comments on commit 12cd95a

Please sign in to comment.