Skip to content

Instantly share code, notes, and snippets.

View larikov's full-sized avatar

Alexander Larikov larikov

  • Angeles, Philippines
  • 12:52 (UTC +08:00)
View GitHub Profile
@larikov
larikov / .drone.yml
Created November 16, 2021 06:13 — forked from anson-vandoren/.drone.yml
Sample .drone.yml configuration file
---
################
# Build & Test #
################
kind: pipeline
name: run_tests
steps:
# Run tests against React client app (with Jest)
import glob
import os
import re
def run():
renamer = re.compile('[^0-9a-zA-Z]+')
for path in glob.iglob('/your/dir/*'):
file_path, file_name = path.rsplit('/', 1)
os.rename(path, os.path.join(file_path, renamer.sub('_', file_name))