File tree Expand file tree Collapse file tree 3 files changed +41
-18
lines changed
Expand file tree Collapse file tree 3 files changed +41
-18
lines changed Original file line number Diff line number Diff line change 11fail_fast : true
2- verbose : true
32
43repos :
54 # checks for secrets via rules (gitleaks.toml)
@@ -26,6 +25,10 @@ repos:
2625 - id : check-added-large-files
2726 args : ['--maxkb=1024']
2827 - id : check-docstring-first
28+ exclude : |
29+ (?x)^(
30+ hello.py
31+ )$
2932 - id : check-executables-have-shebangs
3033 - id : check-merge-conflict
3134 - id : check-shebang-scripts-are-executable
@@ -43,8 +46,10 @@ repos:
4346 - id : pretty-format-json
4447 # https://pre-commit.com/#regular-expressions
4548 exclude : |
46- ^launch.json$
47- ^settings.json$
49+ (?x)^(
50+ .vscode/launch.json|
51+ .vscode/settings.json
52+ )$
4853 args : ['--autofix', '--indent=2', '--no-sort-keys']
4954 - id : requirements-txt-fixer
5055 # - id: trailing-whitespace
Original file line number Diff line number Diff line change 22 // Use IntelliSense to learn about possible attributes.
33 // Hover to view descriptions of existing attributes.
44 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
56 // pytest: https://stackoverflow.com/questions/70259564/how-to-debug-the-current-python-test-file-with-pytest-in-vs-code
7+
68 "version" : " 0.2.0" ,
7- "configurations" : [{
8- "name" : " Python: Debug Tests" ,
9- "type" : " python" ,
10- "request" : " launch" ,
11- "module" : " pytest" ,
12- "args" : [
13- " ${file}"
14- ],
15- "console" : " integratedTerminal"
16- }]
9+ "configurations" : [
10+ {
11+ "name" : " Python: Debug Tests" ,
12+ "type" : " python" ,
13+ "request" : " launch" ,
14+ "module" : " pytest" ,
15+ "args" : [
16+ " ${file}"
17+ ],
18+ "console" : " integratedTerminal"
19+ },
20+ {
21+ "name" : " Node: Current File" ,
22+ "type" : " node" ,
23+ "request" : " launch" ,
24+ "program" : " ${file}" ,
25+ "console" : " integratedTerminal" ,
26+ "skipFiles" : [
27+ " <node_internals>/**"
28+ ],
29+ // "runtimeExecutable": "${env:HOME }/.n/bin/node"
30+ }
31+ ]
1732}
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3+ # flake8: noqa
4+
35# fmt: off
46# import argparse
57import arrow
2931The commented out section is boilerplate for common operations.
3032Feel free to uncomment and/or delete after first commit.
3133"""
34+
3235# env
3336home = Path .home ()
3437cwd = Path .cwd ()
35- now = arrow .now ().format (' YYYYMMDD_HHmmss' )
38+ now = arrow .now ().format (" YYYYMMDD_HHmmss" )
3639out = f"{ cwd } /formatted/results_{ now } .csv"
3740
38- # env vars (hierachy : args, env, .env)
39- HOST = config (' HOST' , default = ' localhost' )
40- USER = config (' USER' )
41- PASS = config (' PASS' )
41+ # env vars (hierarchy : args, env, .env)
42+ HOST = config (" HOST" , default = " localhost" )
43+ USER = config (" USER" )
44+ PASS = config (" PASS" )
4245
4346## verbose icecream
4447# ic.configureOutput(includeContext=True)
You can’t perform that action at this time.
0 commit comments